.
This commit is contained in:
+2
-2
@@ -81,8 +81,8 @@ def cid_scores(request, pk, passcode):
|
|||||||
|
|
||||||
cid = pk
|
cid = pk
|
||||||
|
|
||||||
cid_user = get_object_or_404(CidUser, cid=cid)
|
cid_user = CidUser.objects.filter(cid=cid).first()
|
||||||
if cid_user.passcode != passcode:
|
if not cid_user or cid_user.passcode != passcode:
|
||||||
Http404("CID / Passcode combination not found")
|
Http404("CID / Passcode combination not found")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user