X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bb2bd76f91ed6e4b1530a7fb66553c7fd92afd9d..cbbcbb1fd74c118d51dc8a85d4c1d2234587dde7:/nominatim/tools/refresh.py diff --git a/nominatim/tools/refresh.py b/nominatim/tools/refresh.py index ca6f5c62..561bcf83 100644 --- a/nominatim/tools/refresh.py +++ b/nominatim/tools/refresh.py @@ -57,14 +57,14 @@ def load_address_levels(conn, table, levels): class TEXT, type TEXT, rank_search SMALLINT, - rank_address SMALLINT)""") - .format(pysql.Identifier(table))) + rank_address SMALLINT) + """).format(pysql.Identifier(table))) cur.execute_values(pysql.SQL("INSERT INTO {} VALUES %s") .format(pysql.Identifier(table)), rows) cur.execute(pysql.SQL('CREATE UNIQUE INDEX ON {} (country_code, class, type)') - .format(pysql.Identifier(table))) + .format(pysql.Identifier(table))) conn.commit()