Downvote argument should have a user parameter and is not supposed to be searchable.

This commit is contained in:
2019-12-23 01:10:41 +01:00
parent f32d17796a
commit 289418b485

View File

@@ -213,12 +213,19 @@ def checkConflicts():
if search+values["upvoted"] == 2:
raise SearchModeError("You cannot search in upvoted posts")
if search+values["downvoted"] == 2:
raise SearchModeError("You cannot search in downvoted posts")
if search+values["log"] == 2:
raise SearchModeError("You cannot search in log files")
if values["upvoted"]+values["submitted"] == 1 and user == 0:
raise RedditorNameError("No redditor name given")
if values["downvoted"]+values["submitted"] == 1 and user == 0:
raise RedditorNameError("No redditor name given")
class PromptUser:
@staticmethod
def chooseFrom(choices):