load settings from db, use api to change settings

+ add route to get all settings
+ add route to set any setting
+ add untested migration to add settings into settings db
+ compress json in api responses using FlaskCompress
+ serve gziped assets if browser accepts encoded files
+ misc
This commit is contained in:
mungai-njoroge
2023-08-24 15:52:09 +03:00
parent e3a61c109b
commit 71cab5f5ea
22 changed files with 437 additions and 163 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ class Album:
if "various artists" in artists:
return True
substrings = [
substrings = {
"the essential",
"best of",
"greatest hits",
@@ -136,7 +136,7 @@ class Album:
"great hits",
"biggest hits",
"the hits",
]
}
for substring in substrings:
if substring in self.title.lower():