]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/users.py
resolves OSQA-764, not all activity was displayed at the reputation graph on the...
[osqa.git] / 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
     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
     for i in range(len(values))\r
     ])\r
 \r