Merge branch 'master' of github.com:HeIIow2/music-downloader

merge
This commit is contained in:
Hellow
2022-12-12 19:30:33 +01:00
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()