Update views.py
This commit is contained in:
1 parent
4c3b21e93e
commit
38a289b4d0
1 file changed
+4
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user