mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
Fixed pylint warnings
This commit is contained in:
committed by
Sarah Hoffmann
parent
d4018f2e3b
commit
b7c83d3580
@@ -170,7 +170,7 @@ class SetupAll:
|
|||||||
self._finalize_database(args.config.get_libpq_dsn(), args.offline)
|
self._finalize_database(args.config.get_libpq_dsn(), args.offline)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def _is_complete_import(self, args: NominatimArgs) -> bool:
|
def _is_complete_import(self, args: NominatimArgs) -> bool:
|
||||||
""" Determine if the import is complete or if only the database should be prepared.
|
""" Determine if the import is complete or if only the database should be prepared.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ from nominatim.db.async_connection import DBConnection
|
|||||||
from nominatim.db.sql_preprocessor import SQLPreprocessor
|
from nominatim.db.sql_preprocessor import SQLPreprocessor
|
||||||
from nominatim.tools.exec_utils import run_osm2pgsql
|
from nominatim.tools.exec_utils import run_osm2pgsql
|
||||||
from nominatim.errors import UsageError
|
from nominatim.errors import UsageError
|
||||||
from nominatim.version import POSTGRESQL_REQUIRED_VERSION, POSTGIS_REQUIRED_VERSION, HSTORE_REQUIRED_VERSION
|
from nominatim.version import POSTGRESQL_REQUIRED_VERSION, \
|
||||||
|
POSTGIS_REQUIRED_VERSION, \
|
||||||
|
HSTORE_REQUIRED_VERSION
|
||||||
|
|
||||||
LOG = logging.getLogger()
|
LOG = logging.getLogger()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user