Skip to content

Commit

Permalink
Fix violation count comparison in generate_pass function
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Dec 13, 2023
1 parent 27d8e06 commit 5cf418e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nightpass/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def generate_pass(request, campus_resource):
}
return HttpResponse(json.dumps(data))

if user.student.violation_flags > Settings.max_violation_count:
if user.student.violation_flags >= Settings.max_violation_count:
data = {
'status':False,
'message':'Nightpass facility has been temporarily suspended! Contact DOSA office for further details.'
Expand Down

0 comments on commit 5cf418e

Please sign in to comment.