Fix charts

This commit is contained in:
R. Miles McCain 2020-06-28 17:18:58 +00:00
parent 49f452d9f2
commit 94fed58de3
No known key found for this signature in database
GPG Key ID: F1053629E2905557

View File

@ -234,7 +234,9 @@ class Service(models.Model):
"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,