Remove debugging output

This commit is contained in:
Edward Betts 2021-05-14 11:18:23 +02:00
parent af076ae3aa
commit d3d686b4e3

View file

@ -68,7 +68,6 @@ def check_for_tagged_qids(qids):
for qid in qids: for qid in qids:
for cls in model.Point, model.Polygon, model.Line: for cls in model.Point, model.Polygon, model.Line:
q = cls.query.filter(cls.tags["wikidata"] == qid) q = cls.query.filter(cls.tags["wikidata"] == qid)
print(q)
if q.count(): if q.count():
tagged.add(qid) tagged.add(qid)
break break
@ -684,7 +683,6 @@ def get_items(item_ids):
for item_id in item_ids: for item_id in item_ids:
item = model.Item.query.get(item_id) item = model.Item.query.get(item_id)
if not item: if not item:
print(f"get Q{item_id}")
if not get_and_save_item(f"Q{item_id}"): if not get_and_save_item(f"Q{item_id}"):
continue continue
item = model.Item.query.get(item_id) item = model.Item.query.get(item_id)
@ -707,7 +705,6 @@ def get_item_tags(item):
if isa.qid in extra_keys: if isa.qid in extra_keys:
osm += extra_keys[isa.qid] osm += extra_keys[isa.qid]
print(isa.qid, isa.label(), osm)
osm_list.update(osm) osm_list.update(osm)
subclass_of = [v["numeric-id"] for v in (isa.get_claim("P279") or []) if v] subclass_of = [v["numeric-id"] for v in (isa.get_claim("P279") or []) if v]