Update views.py

This commit is contained in:
Nukeap committed 2025-02-24 14:47:53 +03:00
1 parent 4c3b21e93e
commit 38a289b4d0
1 file changed
+4
+4
View File
@@ -13,10 +13,14 @@ class GetStateSize(ListAPIView):
def get(self, request):
state_size ={}
try:
state_size = StateSizeSerializer(StateSize.objects.latest('date_created')).data
except Exception as e:
pass
return Response(state_size)