rename function
This commit is contained in:
parent
a87fe9eed2
commit
6f30e1232a
|
@ -562,8 +562,7 @@ def osm_object(osm_type, osm_id):
|
||||||
if obj:
|
if obj:
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
def process_edit(changeset_id, e):
|
||||||
def process_match(changeset_id, e):
|
|
||||||
osm_type, _, osm_id = e['osm'].partition('/')
|
osm_type, _, osm_id = e['osm'].partition('/')
|
||||||
qid = e["qid"]
|
qid = e["qid"]
|
||||||
item_id = qid[1:]
|
item_id = qid[1:]
|
||||||
|
@ -667,7 +666,7 @@ def api_real_save_changeset(session_id):
|
||||||
for num, e in enumerate(es.edit_list):
|
for num, e in enumerate(es.edit_list):
|
||||||
print(num, e)
|
print(num, e)
|
||||||
yield send("progress", edit=e, num=num)
|
yield send("progress", edit=e, num=num)
|
||||||
result = process_match(changeset_id, e)
|
result = process_edit(changeset_id, e)
|
||||||
yield send(result, edit=e, num=num)
|
yield send(result, edit=e, num=num)
|
||||||
if result == "saved":
|
if result == "saved":
|
||||||
update_count += 1
|
update_count += 1
|
||||||
|
|
Loading…
Reference in a new issue