Remove printing in backend
This commit is contained in:
@@ -1145,7 +1145,6 @@ class ReverseGeocodeViewSet(viewsets.ViewSet):
|
||||
region = Region.objects.filter(id=iso_code).first()
|
||||
visited_region = VisitedRegion.objects.filter(region=region).first()
|
||||
is_visited = False
|
||||
print(iso_code)
|
||||
country_code = iso_code[:2]
|
||||
|
||||
if region:
|
||||
|
||||
@@ -59,7 +59,6 @@ class CountryViewSet(viewsets.ReadOnlyModelViewSet):
|
||||
for adventure in adventures:
|
||||
if adventure.latitude is not None and adventure.longitude is not None:
|
||||
try:
|
||||
print(f"Adventure {adventure.id}: lat={adventure.latitude}, lon={adventure.longitude}")
|
||||
point = Point(float(adventure.longitude), float(adventure.latitude), srid=4326)
|
||||
region = Region.objects.filter(geometry__contains=point).first()
|
||||
if region:
|
||||
|
||||
Reference in New Issue
Block a user