]> git.openstreetmap.org Git - nominatim.git/commitdiff
Fixed typo
authorRobbe Haesendonck <googleit@inuits.eu>
Thu, 21 Sep 2023 09:20:24 +0000 (11:20 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Dec 2023 08:04:33 +0000 (09:04 +0100)
nominatim/clicmd/setup.py

index fd2c685bd11604f827bc04ac5687cddd5c300c3a..1a651157b3f18b82032caf26d08334c60f1158ae 100644 (file)
@@ -88,15 +88,15 @@ class SetupAll:
             if args.no_superuser and args.prepare_database:
                 raise UsageError("Cannot use --no-superuser and --prepare-database together.")
 
-            if args.prepare_database or self.is_complete_import(args):
+            if args.prepare_database or self._is_complete_import(args):
                 LOG.warning('Creating database')
                 database_import.setup_database_skeleton(args.config.get_libpq_dsn(),
                                                         rouser=args.config.DATABASE_WEBUSER)
 
-                if not self.is_complete_import(args):
+                if not self._is_complete_import(args):
                     return 0
 
-            if not args.prepare_database or args.no_superuser or self.is_complete_import(args):
+            if not args.prepare_database or args.no_superuser or self._is_complete_import(args):
                 # Check if the correct plugins are installed
                 database_import.check_existing_database_plugins(args.config.get_libpq_dsn())
                 LOG.warning('Setting up country tables')