From 45dcebe82b9db22f96da3aeeda1dfc9ad07951ce Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 19 Feb 2017 17:02:52 +0100 Subject: [PATCH] w.id to int(w.id) --- rowers/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/views.py b/rowers/views.py index cd06ba03..d18a4754 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -2069,9 +2069,9 @@ def multi_compare_view(request): yparam = chartform.cleaned_data['yparam'] plottype = chartform.cleaned_data['plottype'] teamid = chartform.cleaned_data['teamid'] - ids = [w.id for w in workouts] + ids = [int(w.id) for w in workouts] labeldict = { - w.id: w.__unicode__() for w in workouts + int(w.id): w.__unicode__() for w in workouts } res = interactive_multiple_compare_chart(ids,xparam,yparam,