implement backup and restore draft 1

+ add extra fields for backup in favorites and scrobble data
- not yet for the playlist tracks
This commit is contained in:
cwilvx
2024-08-17 12:19:24 +03:00
parent ca31054f48
commit 7852be5e3f
8 changed files with 133 additions and 21 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ class ScrobbleTable(Base):
return cls.insert_one(item)
@classmethod
def get_all(cls, start: int, limit: int | None):
def get_all(cls, start: int, limit: int | None = None):
result = cls.execute(
select(cls)
.where(cls.userid == get_current_userid())