mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-29 05:07:00 -05:00
Compare commits
1 Commits
pixeebot/d
...
c04fb73d9c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c04fb73d9c |
@@ -165,13 +165,13 @@ class Park(TrackedModel):
|
||||
print(f"Found park from historical slug: {park.name}")
|
||||
return park, True
|
||||
except cls.DoesNotExist:
|
||||
print("Park not found for historical slug record")
|
||||
print(f"Park not found for historical slug record")
|
||||
pass
|
||||
else:
|
||||
print("No historical slug record found")
|
||||
|
||||
# Try pghistory events
|
||||
print("Searching pghistory events")
|
||||
print(f"Searching pghistory events")
|
||||
event_model = getattr(cls, 'event_model', None)
|
||||
if event_model:
|
||||
historical_event = event_model.objects.filter(
|
||||
@@ -185,7 +185,7 @@ class Park(TrackedModel):
|
||||
print(f"Found park from pghistory: {park.name}")
|
||||
return park, True
|
||||
except cls.DoesNotExist:
|
||||
print("Park not found for pghistory event")
|
||||
print(f"Park not found for pghistory event")
|
||||
pass
|
||||
else:
|
||||
print("No pghistory event found")
|
||||
|
||||
@@ -94,7 +94,7 @@ class ParkModelTests(TestCase):
|
||||
historical_records = event_model.objects.filter(
|
||||
pgh_obj_id=park.id
|
||||
).order_by('-pgh_created_at')
|
||||
print("\nPG History records:")
|
||||
print(f"\nPG History records:")
|
||||
for record in historical_records:
|
||||
print(f"- Event ID: {record.pgh_id}")
|
||||
print(f" Name: {record.name}")
|
||||
|
||||
@@ -32,7 +32,7 @@ pycountry==24.6.1
|
||||
|
||||
# Development
|
||||
black==25.1.0
|
||||
flake8==7.1.1
|
||||
flake8==7.2.0
|
||||
pytest==8.3.4
|
||||
pytest-django==4.10.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user