diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-07-30 21:35:29 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-07-30 21:35:29 +0200 |
commit | 2497c100de34c113304227f72015bfb3755854a3 (patch) | |
tree | e382f92368a37d623f5aea5d02609a13a1c338d8 /module/FileDatabase.py | |
parent | restart working and client information (diff) | |
download | pyload-2497c100de34c113304227f72015bfb3755854a3.tar.xz |
daily commit
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 6cc8d10ff..53e50bb72 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -82,6 +82,11 @@ class FileHandler: self.db.commit() #---------------------------------------------------------------------- + def syncSave(self): + """saves all data to backend and waits until all data are written""" + self.db.syncSave() + + #---------------------------------------------------------------------- def getCompleteData(self, queue=1): """gets a complete data representation""" @@ -452,6 +457,10 @@ class FileDatabaseBackend(Thread): @async def commit(self): self.conn.commit() + + @queue + def syncSave(self): + self.conn.commit() @queue def getPackage(self, id): |