diff options
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): |