This commit is contained in:
Bill Dengler 2015-05-13 23:21:47 -04:00
parent 0b0da44020
commit 6250e16cfe

View File

@ -369,7 +369,7 @@ class Session(object):
def shelve(self): def shelve(self):
"Shelve the database to allow for persistance." "Shelve the database to allow for persistance."
shelfname=paths.config_path(str(self.session_id)+".db") shelfname=paths.config_path(str(self.session_id)+"/cache.db")
if self.settings["general"]["persist_size"] == 0: if self.settings["general"]["persist_size"] == 0:
if os.path.exists(shelfname): if os.path.exists(shelfname):
os.remove(shelfname) os.remove(shelfname)
@ -394,7 +394,7 @@ class Session(object):
def deshelve(self): def deshelve(self):
"Import a shelved database." "Import a shelved database."
shelfname=paths.config_path(str(self.session_id)+".db") shelfname=paths.config_path(str(self.session_id)+"/cache.db")
if self.settings["general"]["persist_size"] == 0: if self.settings["general"]["persist_size"] == 0:
if os.path.exists(shelfname): if os.path.exists(shelfname):
os.remove(shelfname) os.remove(shelfname)