Skip to content

Commit

Permalink
zero values if value is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Oct 28, 2020
1 parent d4c3083 commit f4b68c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_tools_stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_context_data(self, *args, interval=None, graph_key=None, **kwargs):
if y_key not in ydata_serie:
ydata_serie[y_key] = []
names['name%i' % serie_i_map[key]] = str(choices[key][1] if key in choices else key)
ydata_serie[y_key].append(value)
ydata_serie[y_key].append(value if value else 0)

context['extra'] = {
'x_is_date': True,
Expand Down

0 comments on commit f4b68c1

Please sign in to comment.