This repository was archived by the owner on Jun 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 #
You can’t perform that action at this time.
0 commit comments