fix: query location use correct API

This commit is contained in:
moanos [he/him] 2024-06-08 08:57:14 +02:00
parent 2bd40d1278
commit 07fcad0549
2 changed files with 2 additions and 3 deletions

View File

View File

@ -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"]))