Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Pinzauti committed Sep 28, 2020
1 parent 97c6eeb commit 2218362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indagineEDIT/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get(self, request):
notWithDrunkAccidents = Data.objects.filter(SU_MEZZO_CON_UBRIACO="No", ALMENO_1_INCIDENTE="Si").count()
notWithDrunk = Data.objects.filter(SU_MEZZO_CON_UBRIACO="No", ALMENO_1_INCIDENTE="No").count()
content = {'name': 'Su mezzo con ubriaco', 'Hanno avuto incidenti': withDrunkAccidents,
'Mai avuto incidenti': withDrunk}, {'name': 'Mai stato su mezzo con ubriaco',
'Mai avuto incidenti': withDrunk}, {'name': 'Mai fatto',
'Hanno avuto incidenti': notWithDrunkAccidents,
'Mai avuto incidenti': notWithDrunk}
return Response(content)
Expand Down

0 comments on commit 2218362

Please sign in to comment.