Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix unicode error

Roland Geidere74828820b20
diff --git a/wger/manager/views/workout.py b/wger/manager/views/workout.py
index b6b0352a7..d614e2da2 100644
--- a/wger/manager/views/workout.py
+++ b/wger/manager/views/workout.py
@@ -230,7 +230,7 @@ class LastWeightHelper():
:param reps:
:return: WorkoutLog or '' if none is found
'''
- key = '{0}-{1}-{2}'.format(self.user.pk, exercise.pk, reps)
+ key = u'{0}-{1}-{2}'.format(self.user.pk, exercise.pk, reps)
if self.last_weight_list.get(key) is None:
last_log = WorkoutLog.objects.filter(user=self.user,