Skip to content

Commit

Permalink
Remove math import
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Sep 12, 2024
1 parent 00d781f commit 997f9d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tin/apps/assignments/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import csv
import datetime
import logging
import math
import os
import subprocess
import zipfile
Expand Down Expand Up @@ -184,7 +183,7 @@ def show_view(request, assignment_id):
submissions_left = assignment.find_submission_cap(request.user) - len(submissions)
# render properly after submission cap is lowered (such as when the due date is passed)
submissions_left = max(submissions_left, 0)
if math.isinf(submissions_left):
if submissions_left == float("inf"):
submissions_left = None

context.update(
Expand Down

0 comments on commit 997f9d2

Please sign in to comment.