fix spacing

Some versions of pylint are oddly picky.
This commit is contained in:
Sarah Hoffmann
2022-05-11 10:36:09 +02:00
parent d14a585cc9
commit 3ba975466c
3 changed files with 18 additions and 18 deletions

View File

@@ -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()