Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lms/lmsdb/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ def set_state(self, new_state: SolutionState, **kwargs) -> bool:
**{Solution.state.name: new_state.name},
**kwargs,
).where(requested_solution)
updated = changes.execute() == 1
return updated
return changes.execute() == 1
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Solution.set_state refactored with the following changes:


def ordered_versions(self) -> Iterable['Solution']:
return Solution.select().where(
Expand Down
2 changes: 1 addition & 1 deletion lms/lmsweb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def confirm_email(token: str):
_('קישור האימות פג תוקף, קישור חדש נשלח אל תיבת המייל שלך'),
),
))
except (BadSignature, BadTimeSignature):
except BadSignature:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function confirm_email refactored with the following changes:

return fail(404, 'No such signature')


Expand Down