From c9aaf7ee4b2e71f3a1370fbe3e219224ad11ef84 Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Mon, 9 Jul 2018 23:30:01 +0300 Subject: [PATCH] Recognize blank value for restrict_sr in search links --- src/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser.py b/src/parser.py index 0442224..007d4d8 100644 --- a/src/parser.py +++ b/src/parser.py @@ -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"]