From: jordan Date: Wed, 19 Oct 2011 22:46:18 +0000 (+0000) Subject: resolves OSQA-764, not all activity was displayed at the reputation graph on the... X-Git-Tag: live~126 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/a813f8fd620d144d1e7845024d906e8c18b8f9f7 resolves OSQA-764, not all activity was displayed at the reputation graph on the user profile view git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1191 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/users.py b/forum/views/users.py index 9f039f7..bc0abc3 100644 --- a/forum/views/users.py +++ b/forum/views/users.py @@ -371,7 +371,7 @@ def user_reputation(request, user, **kwargs): redux = lambda x, y: x+y graph_data = simplejson.dumps([ - (time.mktime(rep[i].date.timetuple()) * 1000, reduce(redux, values[:i], 0)) + (time.mktime(rep[i].date.timetuple()) * 1000, reduce(redux, values[:i+1], 0)) for i in range(len(values)) ])