mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Fixed #37.
This commit is contained in:
parent
0b0da44020
commit
6250e16cfe
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user