fixed db purge

This commit is contained in:
Klemek
2020-05-01 23:02:33 +02:00
parent 2070307c9d
commit 84da593397
+2 -1
View File
@@ -15,10 +15,11 @@ logger = logging.getLogger("meme_db")
def load_memes(purge: bool = False):
global DATA, ALIASES
global DATA, ALIASES, LIST
if purge:
DATA.clear()
ALIASES.clear()
LIST = []
try:
with open(DATA_FILE) as input_file:
content = "".join(input_file.readlines())