Skip to content

Commit

Permalink
NF: simplify slightly some code
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Milchior committed Dec 4, 2024
1 parent 86ada0c commit b8b97f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qt/aqt/mediasrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,11 @@ def warn() -> None:
aqt.mw.taskman.run_on_main(warn)
abort(403)

if (
context == PageContext.NON_LEGACY_PAGE
or context == PageContext.EDITOR
or context == PageContext.ADDON_PAGE
):
if context in [
PageContext.NON_LEGACY_PAGE,
PageContext.EDITOR,
PageContext.ADDON_PAGE,
]:
pass
elif context == PageContext.REVIEWER and request.path in (
"/_anki/getSchedulingStatesWithContext",
Expand Down

0 comments on commit b8b97f9

Please sign in to comment.