Added new location types to the homepage

doc_update
Joey Hines 2019-05-15 08:25:22 -05:00
parent 217b55ec02
commit fabc697492
1 changed files with 4 additions and 0 deletions

View File

@ -10,10 +10,14 @@ class Home(View):
def get(self, request):
stats = []
stats.append(("Players", Player.objects.count()))
stats.append(("Bases", Base.objects.count()))
stats.append(("Shops", Shop.objects.count()))
stats.append(("Items for Sale", ItemListing.objects.count()))
stats.append(("Towns", Town.objects.count()))
stats.append(("Farms", PublicFarm.objects.count()))
stats.append(("Attractions", Attraction.objects.count()))
context = {
"stat_list": stats,