mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
more formatting fixes
Found by flake8.
This commit is contained in:
@@ -341,7 +341,7 @@ class LegacyICUNameAnalyzer:
|
||||
term = self.name_processor.get_search_normalized(word)
|
||||
if term:
|
||||
copystr.add(word, ' ' + term, cls, typ,
|
||||
oper if oper in ('in', 'near') else None, 0)
|
||||
oper if oper in ('in', 'near') else None, 0)
|
||||
added += 1
|
||||
|
||||
copystr.copy_out(cursor, 'word',
|
||||
|
||||
@@ -582,7 +582,7 @@ class _TokenCache:
|
||||
with conn.cursor() as cur:
|
||||
cur.execute("""SELECT i, ARRAY[getorcreate_housenumber_id(i::text)]::text
|
||||
FROM generate_series(1, 100) as i""")
|
||||
self._cached_housenumbers = {str(r[0]) : r[1] for r in cur}
|
||||
self._cached_housenumbers = {str(r[0]): r[1] for r in cur}
|
||||
|
||||
# For postcodes remember the ones that have already been added
|
||||
self.postcodes = set()
|
||||
|
||||
Reference in New Issue
Block a user