X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/95757b7ab8ad52783347c645dd3bdb37d09740e2..0df1608e9f603e6f40b306a3aff20e52e7318d5a:/forum/views/users.py?ds=sidebyside diff --git a/forum/views/users.py b/forum/views/users.py index 9f039f7..df38159 100644 --- a/forum/views/users.py +++ b/forum/views/users.py @@ -131,7 +131,7 @@ def online_users(request): }) -def edit_user(request, id): +def edit_user(request, id, slug): user = get_object_or_404(User, id=id) if not (request.user.is_superuser or request.user == user): return HttpResponseUnauthorized(request) @@ -236,7 +236,7 @@ def suspend(request, id): return render_to_response('users/suspend_user.html') data = { - 'bantype': request.POST.get('bantype', 'indefinetly').strip(), + 'bantype': request.POST.get('bantype', 'Indefinitely').strip(), 'publicmsg': request.POST.get('publicmsg', _('Bad behaviour')), 'privatemsg': request.POST.get('privatemsg', None) or request.POST.get('publicmsg', ''), 'suspended': user @@ -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)) ])