fixed db purge
This commit is contained in:
@@ -15,10 +15,11 @@ logger = logging.getLogger("meme_db")
|
|||||||
|
|
||||||
|
|
||||||
def load_memes(purge: bool = False):
|
def load_memes(purge: bool = False):
|
||||||
global DATA, ALIASES
|
global DATA, ALIASES, LIST
|
||||||
if purge:
|
if purge:
|
||||||
DATA.clear()
|
DATA.clear()
|
||||||
ALIASES.clear()
|
ALIASES.clear()
|
||||||
|
LIST = []
|
||||||
try:
|
try:
|
||||||
with open(DATA_FILE) as input_file:
|
with open(DATA_FILE) as input_file:
|
||||||
content = "".join(input_file.readlines())
|
content = "".join(input_file.readlines())
|
||||||
|
|||||||
Reference in New Issue
Block a user