fix: query location use correct API
This commit is contained in:
parent
2bd40d1278
commit
07fcad0549
@ -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"]))
|
||||
|
Loading…
Reference in New Issue
Block a user