This commit is contained in:
Lars Noack
2022-12-12 15:40:41 +01:00
parent 9d43dfd129
commit dee7f9f152
3 changed files with 66 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
from .database import Database
from .new_database import Database
from ..utils.shared import (
TEMP_DATABASE_PATH,
@@ -9,8 +9,11 @@ logger = DATABASE_LOGGER
class TempDatabase(Database):
def __init__(self) -> None:
super().__init__(TEMP_DATABASE_PATH, False)
def __init__(self, reset_on_start: bool = True) -> None:
super().__init__(TEMP_DATABASE_PATH)
if reset_on_start:
self.reset()
temp_database = TempDatabase()