From 07fcad05496f4b0e58dab545a25927115ff962e5 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 8 Jun 2024 08:57:14 +0200 Subject: [PATCH] fix: query location use correct API --- src/__init__.py | 0 src/fellchensammlung/management/commands/query_location.py | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 src/__init__.py diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/fellchensammlung/management/commands/query_location.py b/src/fellchensammlung/management/commands/query_location.py index c695fed..b8f5815 100644 --- a/src/fellchensammlung/management/commands/query_location.py +++ b/src/fellchensammlung/management/commands/query_location.py @@ -1,5 +1,5 @@ from django.core.management import BaseCommand -from fellchensammlung.tools.geo import GeoAPI +from fellchensammlung.models import Location class Command(BaseCommand): @@ -13,5 +13,4 @@ class Command(BaseCommand): ) def handle(self, *args, **options): - geo_api = GeoAPI(debug=False) - print(geo_api.get_location_from_string(options["query"])) + print(Location.get_location_from_string(options["query"]))