blacklist changes

- compare all strings as lowercase
 - removed default 'puzzle' keyword
This commit is contained in:
mcinj 2022-04-27 14:29:13 -04:00
parent 55dd027393
commit 672df0202b
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ class SteamGifts:
if self.blacklist is not None and self.blacklist != ['']:
for keyword in self.blacklist:
if giveaway.game_name.find(keyword) != -1:
if giveaway.game_name.lower().find(keyword.lower()) != -1:
txt = f"Game {giveaway.game_name} contains the blacklisted keyword {keyword}"
logger.debug(txt)
return False