1
0

show watchtower db size in GUI

This commit is contained in:
ThomasV
2020-05-13 15:13:09 +02:00
parent 594f13b6f7
commit a3332dc72a
2 changed files with 8 additions and 1 deletions

View File

@@ -28,6 +28,9 @@ class SqlDB(Logger):
self.sql_thread = threading.Thread(target=self.run_sql)
self.sql_thread.start()
def filesize(self):
return os.stat(self.path).st_size
def run_sql(self):
self.logger.info("SQL thread started")
self.conn = sqlite3.connect(self.path)