X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/738e99ce71b165e9fddb3381ba683fb5fd9b7298..e1dc4379e0cd100200ac53752442143ca4846fc5:/src/nominatim_db/clicmd/add_data.py?ds=inline diff --git a/src/nominatim_db/clicmd/add_data.py b/src/nominatim_db/clicmd/add_data.py index e2058b74..580740f1 100644 --- a/src/nominatim_db/clicmd/add_data.py +++ b/src/nominatim_db/clicmd/add_data.py @@ -18,13 +18,10 @@ from .args import NominatimArgs from ..db.connection import connect from ..tools.freeze import is_frozen -# Do not repeat documentation of subcommand classes. -# pylint: disable=C0111 -# Using non-top-level imports to avoid eventually unused imports. -# pylint: disable=E0012,C0415 LOG = logging.getLogger() + class UpdateAddData: """\ Add additional data from a file or an online source. @@ -65,7 +62,6 @@ class UpdateAddData: group2.add_argument('--socket-timeout', dest='socket_timeout', type=int, default=60, help='Set timeout for file downloads') - def run(self, args: NominatimArgs) -> int: from ..tools import add_osm_data @@ -103,7 +99,6 @@ class UpdateAddData: return 0 - async def _add_tiger_data(self, args: NominatimArgs) -> int: from ..tokenizer import factory as tokenizer_factory from ..tools import tiger_data @@ -113,5 +108,5 @@ class UpdateAddData: tokenizer = tokenizer_factory.get_tokenizer_for_db(args.config) return await tiger_data.add_tiger_data(args.tiger_data, args.config, - args.threads or psutil.cpu_count() or 1, + args.threads or psutil.cpu_count() or 1, tokenizer)