Self hosted FLOSS fitness/workout, nutrition and weight tracker
Use python's OrderedDict instead of django's datastructure
Roland Geiderfc351fe770db
diff --git a/wger/weight/helpers.py b/wger/weight/helpers.pyindex 0eb453288..d36ffaba9 100644--- a/wger/weight/helpers.py+++ b/wger/weight/helpers.py@@ -20,8 +20,7 @@ import datetimeimport decimalimport csvimport json--from django.utils.datastructures import SortedDict+from collections import OrderedDictfrom wger.utils.helpers import DecimalJsonEncoderfrom wger.weight.models import WeightEntry@@ -67,7 +66,7 @@ def process_log_entries(logs):'''reps = []- entry_log = SortedDict()+ entry_log = OrderedDict()chart_data = []max_weight = {}