Skip to content

Commit

Permalink
Fix charts
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmcc committed Jun 28, 2020
1 parent 49f452d commit 94fed58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shynet/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def get_relative_stats(self, start_time, end_time):
"session_chart_data": json.dumps(
[
{"x": str(key), "y": value}
for key, value in session_chart_data.items()
for key, value in sorted(
session_chart_data.items(), key=lambda k: k[0]
)
]
),
"online": True,
Expand Down

0 comments on commit 94fed58

Please sign in to comment.