Restyle New album page design (#76)

This commit is contained in:
restyled-io[bot]
2022-07-02 09:06:14 +03:00
committed by Mungai Geoffrey
parent 7d59993203
commit 714775a67e
11 changed files with 67 additions and 54 deletions
+4 -4
View File
@@ -1,8 +1,9 @@
"""
Contains all the models for objects generation and typing.
"""
from dataclasses import dataclass, field
import random
from dataclasses import dataclass
from dataclasses import field
from typing import List
from app import helpers
@@ -48,9 +49,8 @@ class Track:
self.image = tags["albumhash"] + ".webp"
self.tracknumber = int(tags["tracknumber"])
self.uniq_hash = self.create_unique_hash(
"".join(self.artists), self.album, self.title
)
self.uniq_hash = self.create_unique_hash("".join(self.artists),
self.album, self.title)
@staticmethod
def create_unique_hash(*args):