Skip to content

Commit d206c6a

Browse files
committed
Fixed sourcey-ai issues
1 parent 3913a5e commit d206c6a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lms/lmsdb/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,7 @@ def set_state(self, new_state: SolutionState, **kwargs) -> bool:
417417
**{Solution.state.name: new_state.name},
418418
**kwargs,
419419
).where(requested_solution)
420-
updated = changes.execute() == 1
421-
return updated
420+
return changes.execute() == 1
422421

423422
def ordered_versions(self) -> Iterable['Solution']:
424423
return Solution.select().where(

lms/lmsweb/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def confirm_email(token: str):
171171
_('קישור האימות פג תוקף, קישור חדש נשלח אל תיבת המייל שלך'),
172172
),
173173
))
174-
except (BadSignature, BadTimeSignature):
174+
except BadSignature:
175175
return fail(404, 'No such signature')
176176

177177

0 commit comments

Comments
 (0)