Don't show debugging output.
This commit is contained in:
parent
6ce8b30fcc
commit
dfb282b468
|
@ -264,7 +264,7 @@ WHERE tags ? 'wikidata'
|
||||||
conn = database.session.connection()
|
conn = database.session.connection()
|
||||||
result = conn.execute(text(sql))
|
result = conn.execute(text(sql))
|
||||||
|
|
||||||
print(sql)
|
# print(sql)
|
||||||
|
|
||||||
point_sql = (
|
point_sql = (
|
||||||
f"""
|
f"""
|
||||||
|
@ -789,7 +789,7 @@ def find_osm_candidates(item, limit=80, max_distance=450, names=None):
|
||||||
if limit:
|
if limit:
|
||||||
s = s.limit(limit)
|
s = s.limit(limit)
|
||||||
|
|
||||||
print(s.compile(compile_kwargs={"literal_binds": True}))
|
# print(s.compile(compile_kwargs={"literal_binds": True}))
|
||||||
|
|
||||||
conn = database.session.connection()
|
conn = database.session.connection()
|
||||||
nearby = []
|
nearby = []
|
||||||
|
@ -852,6 +852,7 @@ def find_osm_candidates(item, limit=80, max_distance=450, names=None):
|
||||||
|
|
||||||
def get_item(item_id):
|
def get_item(item_id):
|
||||||
"""Retrieve a Wikidata item, either from the database or from Wikidata."""
|
"""Retrieve a Wikidata item, either from the database or from Wikidata."""
|
||||||
|
|
||||||
item = model.Item.query.get(item_id)
|
item = model.Item.query.get(item_id)
|
||||||
return item or get_and_save_item(f"Q{item_id}")
|
return item or get_and_save_item(f"Q{item_id}")
|
||||||
|
|
||||||
|
@ -1031,7 +1032,7 @@ def isa_incremental_search(search_terms):
|
||||||
func.length(en_label) < 20,
|
func.length(en_label) < 20,
|
||||||
)
|
)
|
||||||
|
|
||||||
print(q.statement.compile(compile_kwargs={"literal_binds": True}))
|
# print(q.statement.compile(compile_kwargs={"literal_binds": True}))
|
||||||
|
|
||||||
ret = []
|
ret = []
|
||||||
for item in q:
|
for item in q:
|
||||||
|
|
Loading…
Reference in a new issue