]> git.openstreetmap.org Git - osqa.git/commitdiff
resolves OSQA-764, not all activity was displayed at the reputation graph on the...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 19 Oct 2011 22:46:18 +0000 (22:46 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 19 Oct 2011 22:46:18 +0000 (22:46 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1191 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/users.py

index 9f039f790507516d0ddea0a7fe8119c29e995447..bc0abc3d2fed661991e0c81ccae51525163ab9bf 100644 (file)
@@ -371,7 +371,7 @@ def user_reputation(request, user, **kwargs):
     redux = lambda x, y: x+y\r
 \r
     graph_data = simplejson.dumps([\r
-    (time.mktime(rep[i].date.timetuple()) * 1000, reduce(redux, values[:i], 0))\r
+    (time.mktime(rep[i].date.timetuple()) * 1000, reduce(redux, values[:i+1], 0))\r
     for i in range(len(values))\r
     ])\r
 \r