1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 07:19:36 +02:00

Remove printing in backend

This commit is contained in:
Sean Morley 2024-12-03 14:02:01 -05:00
parent 82040d5c85
commit 0616fe19f3
2 changed files with 0 additions and 2 deletions

View file

@ -1145,7 +1145,6 @@ class ReverseGeocodeViewSet(viewsets.ViewSet):
region = Region.objects.filter(id=iso_code).first() region = Region.objects.filter(id=iso_code).first()
visited_region = VisitedRegion.objects.filter(region=region).first() visited_region = VisitedRegion.objects.filter(region=region).first()
is_visited = False is_visited = False
print(iso_code)
country_code = iso_code[:2] country_code = iso_code[:2]
if region: if region:

View file

@ -59,7 +59,6 @@ class CountryViewSet(viewsets.ReadOnlyModelViewSet):
for adventure in adventures: for adventure in adventures:
if adventure.latitude is not None and adventure.longitude is not None: if adventure.latitude is not None and adventure.longitude is not None:
try: try:
print(f"Adventure {adventure.id}: lat={adventure.latitude}, lon={adventure.longitude}")
point = Point(float(adventure.longitude), float(adventure.latitude), srid=4326) point = Point(float(adventure.longitude), float(adventure.latitude), srid=4326)
region = Region.objects.filter(geometry__contains=point).first() region = Region.objects.filter(geometry__contains=point).first()
if region: if region: