Improved checkConflicts()

This commit is contained in:
Ali Parlakci
2018-08-09 09:26:01 +03:00
parent 94bc1c115f
commit 9338961b2b
2 changed files with 10 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ def getPosts(args):
}
if "search" in args:
if args["sort"] in ["hot","rising","controversial"]:
if GLOBAL.arguments.sort in ["hot","rising","controversial"]:
raise InvalidSortingType("Invalid sorting type has given")
if "subreddit" in args: