Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 5f03d6c

Browse files
committed
run new stable black
1 parent 13ec0b4 commit 5f03d6c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

controllers/assignments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ def record_grade():
430430
settings,
431431
)
432432
except Exception as e:
433-
logger.error(f"Calculate totals failed for reason {e} - {auth.user.course_name} {sid} {student_rownum} {assignment}")
433+
logger.error(
434+
f"Calculate totals failed for reason {e} - {auth.user.course_name} {sid} {student_rownum} {assignment}"
435+
)
434436
except IntegrityError:
435437
logger.error(
436438
"IntegrityError {} {} {}".format(sid, div_id, auth.user.course_name)
@@ -588,7 +590,7 @@ def doAssignment():
588590
if "access_token" not in request.cookies:
589591
# this means the user is logged in to web2py but not fastapi - this is not good
590592
# as the javascript in the questions assumes the new server and a token.
591-
return redirect(URL("default","accessIssue"))
593+
return redirect(URL("default", "accessIssue"))
592594

593595
course = db(db.courses.id == auth.user.course_id).select(**SELECT_CACHE).first()
594596
assignment_id = request.vars.assignment_id

controllers/books.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def dummy():
200200
):
201201
# See the `response <http://web2py.com/books/default/chapter/29/04/the-core#response>`_.
202202
# Warning: this is slow. Configure a production server to serve this statically.
203-
return response.stream(book_path, 2 ** 20, request=request)
203+
return response.stream(book_path, 2**20, request=request)
204204

205205
# It's HTML -- use the file as a template.
206206
#

0 commit comments

Comments
 (0)