1
0
Fork 0
mirror of synced 2024-06-26 10:00:20 +12:00

Recognize blank value for restrict_sr in search links

This commit is contained in:
Ali Parlakci 2018-07-09 23:30:01 +03:00
parent 82e5b2ffa1
commit c9aaf7ee4b

View file

@ -144,7 +144,8 @@ def LinkDesigner(LINK):
if "restrict_sr" in attributes["search"]:
if not (attributes["search"]["restrict_sr"] == 0 or \
attributes["search"]["restrict_sr"] == "off"):
attributes["search"]["restrict_sr"] == "off" or \
attributes["search"]["restrict_sr"] == ""):
if "subreddit" in attributes:
MODE["subreddit"] = attributes["subreddit"]