break settings.py into classes

This commit is contained in:
geoffrey45
2023-03-26 08:25:00 +03:00
parent 79029ae346
commit 357afeb700
22 changed files with 102 additions and 96 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ class ProcessAlbumColors:
@staticmethod
def process_color(album: Album):
path = Path(settings.SM_THUMB_PATH) / album.image
path = Path(settings.Paths.SM_THUMB_PATH) / album.image
if not path.exists():
return
@@ -78,7 +78,7 @@ class ProcessArtistColors:
@staticmethod
def process_color(artist: Artist):
path = Path(settings.ARTIST_IMG_SM_PATH) / artist.image
path = Path(settings.Paths.ARTIST_IMG_SM_PATH) / artist.image
if not path.exists():
return