mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix mix page
This commit is contained in:
@@ -46,6 +46,7 @@ class Mix:
|
|||||||
def to_dict(self, convert_timestamp: bool = False):
|
def to_dict(self, convert_timestamp: bool = False):
|
||||||
item = asdict(self)
|
item = asdict(self)
|
||||||
item["trackshash"] = create_hash(*self.tracks[:40])
|
item["trackshash"] = create_hash(*self.tracks[:40])
|
||||||
|
item["type"] = "mix"
|
||||||
|
|
||||||
if convert_timestamp:
|
if convert_timestamp:
|
||||||
item["time"] = timestamp_to_time_passed(item["timestamp"])
|
item["time"] = timestamp_to_time_passed(item["timestamp"])
|
||||||
|
|||||||
Reference in New Issue
Block a user