-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ def top_lijst(slug): | |
return sorted(scores, key=operator.itemgetter('wgh_error')) | ||
|
||
def result(request): | ||
session_hash = request.GET['session_hash'] | ||
session_title = request.GET['session_title'] | ||
student_name = request.GET['student_name'] | ||
pk = request.GET['pk'] | ||
lat = request.GET['lat'] | ||
|
@@ -112,7 +112,7 @@ def result(request): | |
error_estimate = request.GET['error'] | ||
|
||
coincidence = AnalyzedCoincidence.objects.get(pk=pk) | ||
assert coincidence.session.hash == session_hash | ||
assert coincidence.session.title == session_title | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
davidfokkema
Member
|
||
assert coincidence.student.name == student_name | ||
|
||
if coincidence.student.name == 'Test student': | ||
|
Change back to session hash comparison or add ".lower()" on each side.
In the current way the session title is case sensitive.