commit to db
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 6 May 2024 07:26:02 +0000 (09:26 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 6 May 2024 07:26:02 +0000 (09:26 +0200)
music_assistant/server/controllers/music.py

index 603a2f824d20595014f617152f244598083c9c43..c056cf1010001296a972586c9b6e537a56f137d2 100644 (file)
@@ -594,6 +594,7 @@ class MusicController(CoreController):
             f"UPDATE {ctrl.db_table} SET play_count = play_count + 1, "
             f"last_played = {timestamp} WHERE item_id = {item_id}"
         )
+        await self._db.commit()
 
     def get_controller(
         self, media_type: MediaType