Skip to content

Commit

Permalink
fix: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Jan 4, 2024
1 parent fbcd8a0 commit ceed1ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/shop/cred/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from datetime import datetime, timedelta
import math
import sched
import pytz
import flask
import json
Expand Down Expand Up @@ -117,7 +116,8 @@ def cred_schedule(ua_contracts_api, trueability_api, **_):
"/credentials/schedule.html", error=error
)
if scheduled_time < now + timedelta(minutes=30):
error = "You cannot schedule an exam less than 30 minutes in the future."
error = """You cannot schedule an exam less than 30 minutes in
the future."""
return flask.render_template(
"/credentials/schedule.html", error=error
)
Expand Down

0 comments on commit ceed1ff

Please sign in to comment.