fix key error

This commit is contained in:
Laura Klünder 2018-12-25 21:36:54 +01:00
parent fc1a1bf586
commit a4558ed5b2

View file

@ -21,7 +21,7 @@ def stats_snapshot(reset=True):
cache.set('apistats_last_reset', now, None)
results = dict(sorted(results.items()))
return {
'start_time': str(last_now),
'end_time': str(now),
'start_date': str(last_now),
'end_date': str(now),
'data': results
}