Skip to content

armgit / wger

Public Imported from GitHub
0

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.py
index 0eb453288..d36ffaba9 100644
--- a/wger/weight/helpers.py
+++ b/wger/weight/helpers.py
@@ -20,8 +20,7 @@ import datetime
import decimal
import csv
import json
-
-from django.utils.datastructures import SortedDict
+from collections import OrderedDict
from wger.utils.helpers import DecimalJsonEncoder
from 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 = {}