fix: removing favorites not being commited to db

+ improve: collision of hashes on the favorite table
+ rename pages to collections
+ bump mix sleep time from 6hrs to 12hrs
This commit is contained in:
cwilvx
2025-02-25 23:30:51 +03:00
parent 0a1ab72932
commit 620974561c
8 changed files with 215 additions and 190 deletions
+5 -1
View File
@@ -8,4 +8,8 @@ class Favorite:
type: Literal["album", "track", "artist"]
timestamp: int
userid: int
extra: dict[str, Any]
extra: dict[str, Any]
def __post_init__(self):
# remove the type prefix from the hash
self.hash = self.hash.replace(f"{self.type}_", "")