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
+11 -7
View File
@@ -1,20 +1,22 @@
from dataclasses import dataclass
import time
from concurrent.futures import ThreadPoolExecutor
from dataclasses import dataclass
from typing import List
from app import instances
from app import settings
from app.logger import logg
from app.helpers import Get, UseBisection, create_album_hash
from app.helpers import create_album_hash
from app.helpers import Get
from app.helpers import run_fast_scandir
from app.helpers import UseBisection
from app.instances import tracks_instance
from app.lib.albumslib import create_album
from app.lib.taglib import get_tags
from app.models import Album, Track
from app.logger import logg
from app.models import Album
from app.models import Track
from tqdm import tqdm
from app import instances
class Populate:
"""
@@ -76,6 +78,7 @@ class PreAlbum:
class CreateAlbums:
def __init__(self) -> None:
self.db_tracks = Get.get_all_tracks()
self.db_albums = Get.get_all_albums()
@@ -119,7 +122,8 @@ class CreateAlbums:
return prealbums
@staticmethod
def filter_processed(albums: List[Album], prealbums: List[PreAlbum]) -> List[dict]:
def filter_processed(albums: List[Album],
prealbums: List[PreAlbum]) -> List[dict]:
to_process = []
for p in tqdm(prealbums, desc="Filtering processed albums"):