Fix a few bugs ...
1) Forgot to remove reference to data in viewProfile() in simplification 2) Forgot to adjust condition in template for index viewing pending/active tests 3) Forgot to adjust default page for greens to be 1
This commit is contained in:
1 parent
5a48d050dc
commit
39cc7d41bb
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -88,7 +88,7 @@ def logout(request):
|
||||
def viewProfile(request):
|
||||
|
||||
# render() gets the profile data for us
|
||||
return render(request, 'viewProfile.html', data)
|
||||
return render(request, 'viewProfile.html', {})
|
||||
|
||||
@login_required(login_url='/login/')
|
||||
def editProfile(request):
|
||||
@@ -183,7 +183,7 @@ def index(request, page=1, pageLength=24, greens=False, username=None, error='')
|
||||
|
||||
return render(request, 'index.html', data)
|
||||
|
||||
def greens(request, page=0):
|
||||
def greens(request, page=1):
|
||||
|
||||
# Index but with only passed tests
|
||||
return index(request, page, greens=True)
|
||||
|
||||
Reference in new issue
Block a user