Fixed shelve method

This commit is contained in:
Manuel Cortez 2021-01-27 17:31:14 -06:00
parent 36cc3f9365
commit eca0c0dbbd

View File

@ -75,7 +75,7 @@ class baseSession(object):
def shelve(self): def shelve(self):
"""Shelve the database to allow for persistance.""" """Shelve the database to allow for persistance."""
shelfname=os.path.join(paths.config_path(), str(self.session_id)+"/cache") shelfname=os.path.join(paths.config_path(), str(self.session_id), "cache")
if self.settings["general"]["persist_size"] == 0: if self.settings["general"]["persist_size"] == 0:
if os.path.exists(shelfname+".dat"): if os.path.exists(shelfname+".dat"):
os.remove(shelfname+".dat") os.remove(shelfname+".dat")