fix importance recalculation

The signature of the compute_importance() function has changed.
This commit is contained in:
Sarah Hoffmann
2023-01-22 21:30:43 +01:00
parent fabe45f60a
commit d756e5f0e5
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ def recompute_importance(conn: Connection) -> None:
cur.execute("""
UPDATE placex SET (wikipedia, importance) =
(SELECT wikipedia, importance
FROM compute_importance(extratags, country_code, osm_type, osm_id, centroid))
FROM compute_importance(extratags, country_code, rank_search, centroid))
""")
cur.execute("""
UPDATE placex s SET wikipedia = d.wikipedia, importance = d.importance