add setting to show albums with single track as singles

+ add the above setting to db queries file and migration
This commit is contained in:
mungai-njoroge
2023-09-04 19:46:46 +03:00
parent 83bbe69550
commit 6c0024f699
7 changed files with 24 additions and 5 deletions
+4
View File
@@ -176,6 +176,7 @@ class SessionVars:
MERGE_ALBUM_VERSIONS = False
ARTIST_SEPARATORS = set()
SHOW_ALBUMS_AS_SINGLES = True
# TODO: Find a way to eliminate this class without breaking typings
@@ -188,6 +189,9 @@ class SessionVarKeys:
PERIODIC_SCAN_INTERVAL = "PERIODIC_SCAN_INTERVAL"
MERGE_ALBUM_VERSIONS = "MERGE_ALBUM_VERSIONS"
ARTIST_SEPARATORS = "ARTIST_SEPARATORS"
SHOW_ALBUMS_AS_SINGLES = (
"SHOW_ALBUMS_AS_SINGLES"
)
def get_flag(key: SessionVarKeys) -> bool: