From 33b1efc2ed1253f258e39aca1200f71a6e6309eb Mon Sep 17 00:00:00 2001 From: Hellow Date: Sun, 19 Feb 2023 23:36:04 +0100 Subject: [PATCH] Update database.py --- src/music_kraken/database/database.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/music_kraken/database/database.py b/src/music_kraken/database/database.py index 27c58a3..6d3e533 100644 --- a/src/music_kraken/database/database.py +++ b/src/music_kraken/database/database.py @@ -111,7 +111,7 @@ class Database: Returns: The newly added music object. """ - + with write.WritingSession(self.database) as writing_session: if isinstance(database_object, objects.Song): return writing_session.add_song(database_object) @@ -122,7 +122,6 @@ class Database: if isinstance(database_object, objects.Artist): return writing_session.add_artist(database_object) - def push_many(self, database_objects: List[objects.MusicObject]) -> None: """ Adds a list of MusicObject instances to the database.