Open stalker314314 opened 1 month ago
I've not used the autochangeset in quite a while.
I created a contextmanager so you can actually use a the with
keyword to open and automatically close your changesets like this:
api = osmapi.OsmApi(api="https://api06.dev.openstreetmap.org", session=auth.session)
with api.Changeset({"comment": "My first test"}) as changeset_id:
print(f"Part of Changeset {changeset_id}")
node1 = api.NodeCreate({"lon": 1, "lat": 1, "tag": {}})
See this script for a more complete example.
Hi, I was using this pattern:
and it worked when I was using username/password (v3.1.0). Nowdays same code is returning:
I cannot easily debug, seems like code iterates for
dict
and trying to treatchangedElement
as dictionary (while those are keys ofchangeData
dict. I guess I am on some wrong path completely.I would be suspicious of my code, but this pattern works:
I am not blocked, but I need to manually open/close changesets. Is it just me, or autochangeset break for you too? I am using latest osmapi wrongly?