Skip to content
Snippets Groups Projects
Verified Commit 9d6db523 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Refactor "and" sequence using all()

parent 57be44f2
No related branches found
No related tags found
1 merge request!49Resolve "Add rules and permissions"
Pipeline #4067 failed
......@@ -55,7 +55,7 @@ def lesson(
else:
wanted_week = None
if not (year and week and period_id):
if not all((year, week, period_id)):
if lesson_period:
return redirect(
"lesson_by_week_and_period",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment