mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
misc refactors and docstrings addition
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
"""
|
||||
This library contains all the functions related to albums.
|
||||
"""
|
||||
|
||||
import urllib
|
||||
from typing import List
|
||||
from app import models, functions, helpers
|
||||
@@ -5,7 +9,6 @@ from app.lib import trackslib
|
||||
from app import api
|
||||
|
||||
|
||||
@helpers.background
|
||||
def create_everything() -> List[models.Track]:
|
||||
"""
|
||||
Creates album objects for all albums and returns
|
||||
@@ -18,7 +21,6 @@ def create_everything() -> List[models.Track]:
|
||||
trackslib.create_all_tracks()
|
||||
|
||||
|
||||
|
||||
def get_album_duration(album: list) -> int:
|
||||
"""
|
||||
Gets the duration of an album.
|
||||
|
||||
Reference in New Issue
Block a user