mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Statistics: Fixed product graph
This commit is contained in:
@@ -58,14 +58,14 @@ class IndexView(EventPermissionRequiredMixin, TemplateView):
|
||||
p['item']: p['cnt']
|
||||
for p in (OrderPosition.objects.current
|
||||
.filter(order__event=self.request.event)
|
||||
.values('item', 'variation')
|
||||
.values('item')
|
||||
.annotate(cnt=Count('id')))
|
||||
}
|
||||
num_paid = {
|
||||
p['item']: p['cnt']
|
||||
for p in (OrderPosition.objects.current
|
||||
.filter(order__event=self.request.event, order__status=Order.STATUS_PAID)
|
||||
.values('item', 'variation')
|
||||
.values('item')
|
||||
.annotate(cnt=Count('id')))
|
||||
}
|
||||
item_names = {
|
||||
|
||||
Reference in New Issue
Block a user