mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 08:24:43 +00:00
remove prints
This commit is contained in:
1 parent
0934e4ed7a
commit
d6df57ba5f
2 files changed
+2
-6
No files matched your search
@@ -135,12 +135,11 @@ class RestoreBackup:
|
||||
for playlist in new_playlists:
|
||||
try:
|
||||
if playlist.get("_score") is not None:
|
||||
print("Removing _score from playlist")
|
||||
del playlist["_score"]
|
||||
|
||||
PlaylistTable.add_one(playlist)
|
||||
except sqlalchemy.exc.IntegrityError:
|
||||
print("Integrity error, skipping playlist")
|
||||
print("Integrity error, skipping playlist:")
|
||||
print(playlist)
|
||||
|
||||
def restore_scrobbles(self, scrobbles: list[dict]):
|
||||
@@ -159,7 +158,7 @@ class RestoreBackup:
|
||||
try:
|
||||
ScrobbleTable.add(scrobble)
|
||||
except sqlalchemy.exc.IntegrityError:
|
||||
print("Integrity error, skipping scrobble")
|
||||
print("Integrity error, skipping scrobble:")
|
||||
print(scrobble)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user