fix homepage counts

This commit is contained in:
pacnpal
2024-12-06 13:30:45 -05:00
parent 43ec3efa68
commit 86059bbcba
73 changed files with 73 additions and 2 deletions

View File

@@ -27,8 +27,8 @@ class HomeView(TemplateView):
# Get stats
context['stats'] = {
'total_parks': Park.objects.count(),
'total_rides': Ride.objects.count(),
'total_roller_coasters': Ride.objects.filter(category='RC').count(),
'ride_count': Ride.objects.count(),
'coaster_count': Ride.objects.filter(category='RC').count(),
}
# Try to get trending items from cache first