forked from hans/Nominatim
more formatting fixes
Found by flake8.
This commit is contained in:
@@ -90,7 +90,7 @@ class APISearch:
|
||||
if args.query:
|
||||
params = dict(q=args.query)
|
||||
else:
|
||||
params = {k : getattr(args, k) for k, _ in STRUCTURED_QUERY if getattr(args, k)}
|
||||
params = {k: getattr(args, k) for k, _ in STRUCTURED_QUERY if getattr(args, k)}
|
||||
|
||||
for param, _ in EXTRADATA_PARAMS:
|
||||
if getattr(args, param):
|
||||
|
||||
@@ -24,4 +24,4 @@ class NominatimArgs:
|
||||
main_data=self.config.TABLESPACE_PLACE_DATA,
|
||||
main_index=self.config.TABLESPACE_PLACE_INDEX
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -61,7 +61,7 @@ class UpdateRefresh:
|
||||
args.threads or 1)
|
||||
indexer.index_postcodes()
|
||||
else:
|
||||
LOG.error("The place table doesn\'t exist. " \
|
||||
LOG.error("The place table doesn't exist. "
|
||||
"Postcode updates on a frozen database is not possible.")
|
||||
|
||||
if args.word_counts:
|
||||
|
||||
@@ -93,7 +93,7 @@ class UpdateReplication:
|
||||
indexed_only=not args.once)
|
||||
|
||||
# Sanity check to not overwhelm the Geofabrik servers.
|
||||
if 'download.geofabrik.de'in params['base_url']\
|
||||
if 'download.geofabrik.de' in params['base_url']\
|
||||
and params['update_interval'] < 86400:
|
||||
LOG.fatal("Update interval too low for download.geofabrik.de.\n"
|
||||
"Please check install documentation "
|
||||
|
||||
Reference in New Issue
Block a user