API: Add "currently inside" to checkin statistics

This commit is contained in:
Raphael Michel
2020-10-19 12:42:46 +02:00
parent 7c212ba79d
commit fcd0c65567
3 changed files with 4 additions and 1 deletions

View File

@@ -111,7 +111,8 @@ class CheckinListViewSet(viewsets.ModelViewSet):
'name': str(ev.name),
},
'checkin_count': cqs.count(),
'position_count': pqs.count()
'position_count': pqs.count(),
'inside_count': clist.inside_count,
}
op_by_item = {