check if album colors have contrast

- remove albumid field from album class
- set accent color to $red
This commit is contained in:
geoffrey45
2022-06-30 17:35:46 +03:00
committed by Mungai Geoffrey
parent a23b6200eb
commit 5acb8cb84d
9 changed files with 42 additions and 38 deletions
-2
View File
@@ -82,7 +82,6 @@ class Album:
Creates an album object
"""
albumid: str
title: str
artist: str
hash: str
@@ -96,7 +95,6 @@ class Album:
colors: List[str] = field(default_factory=list)
def __init__(self, tags):
self.albumid = tags["_id"]["$oid"]
self.title = tags["title"]
self.artist = tags["artist"]
self.date = tags["date"]