From 264168209c5ed0d27427d3c49dde35e78423c640 Mon Sep 17 00:00:00 2001 From: oddluck <39967334+oddluck@users.noreply.github.com> Date: Wed, 1 Jul 2020 01:33:38 +0000 Subject: [PATCH] Jeopardy: weed out more broken questions --- .git-blame-ignore-revs | 2 ++ Jeopardy/plugin.py | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..6d03dc3 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Migrate code style to Black +457022aa416431c6fe78743087677c0e9fd1d752 diff --git a/Jeopardy/plugin.py b/Jeopardy/plugin.py index 4cbffd4..4abe787 100644 --- a/Jeopardy/plugin.py +++ b/Jeopardy/plugin.py @@ -222,6 +222,7 @@ class Jeopardy(callbacks.Plugin): and not invalid and id not in asked and id not in self.history[channel] + and answer != "=" ): q = "{0}|{1}|{2}|{3}|{4}|{5}".format( id, airdate, points, category, clue, answer @@ -238,6 +239,7 @@ class Jeopardy(callbacks.Plugin): and category and not invalid and id not in asked + and answer != "=" ): q = "{0}|{1}|{2}|{3}|{4}|{5}".format( id, airdate, points, category, clue, answer @@ -353,6 +355,7 @@ class Jeopardy(callbacks.Plugin): and not invalid and id not in asked and id not in self.history[channel] + and answer != "=" ): q = "{0}|{1}|{2}|{3}|{4}|{5}".format( id, airdate, points, category, clue, answer @@ -370,6 +373,7 @@ class Jeopardy(callbacks.Plugin): and category and not invalid and id not in asked + and answer != "=" ): q = "{0}|{1}|{2}|{3}|{4}|{5}".format( id, airdate, points, category, clue, answer