Skip to content

Commit 875eb31

Browse files
committed
Simplify if statement
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
1 parent 43ade7c commit 875eb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/srgssr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def build_menu_apiv3(self, queries, mode=1000, page=1, page_hash=None,
383383
item, is_show=is_show, whitelist_ids=whitelist_ids)
384384

385385
if cursor:
386-
if page == 0 or page == '0':
386+
if page in (0, '0'):
387387
return
388388

389389
# Next page urls containing the string 'urns=' do not work

0 commit comments

Comments
 (0)