mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-05-01 06:44:28 +02:00
fix /reports/usermonth/ & /reports/queuemonth/ errors
- indexing was wrong - wrong first month label was used.
This commit is contained in:
parent
50406665c9
commit
b79bb6ac10
@ -881,7 +881,7 @@ def run_report(request, report):
|
||||
periods = []
|
||||
year, month = first_year, first_month
|
||||
working = True
|
||||
periods.append("%s %s" % (months[month], year))
|
||||
periods.append("%s %s" % (months[month - 1], year))
|
||||
|
||||
while working:
|
||||
month += 1
|
||||
@ -951,7 +951,7 @@ def run_report(request, report):
|
||||
|
||||
elif report == 'usermonth':
|
||||
metric1 = u'%s' % ticket.get_assigned_to
|
||||
metric2 = u'%s %s' % (months[ticket.created.month], ticket.created.year)
|
||||
metric2 = u'%s %s' % (months[ticket.created.month - 1], ticket.created.year)
|
||||
|
||||
elif report == 'queuepriority':
|
||||
metric1 = u'%s' % ticket.queue.title
|
||||
@ -963,7 +963,7 @@ def run_report(request, report):
|
||||
|
||||
elif report == 'queuemonth':
|
||||
metric1 = u'%s' % ticket.queue.title
|
||||
metric2 = u'%s %s' % (months[ticket.created.month], ticket.created.year)
|
||||
metric2 = u'%s %s' % (months[ticket.created.month - 1], ticket.created.year)
|
||||
|
||||
summarytable[metric1, metric2] += 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user