mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
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:
@@ -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}_", "")
|
||||
|
||||
Reference in New Issue
Block a user