mirror of
https://github.com/Alvin-Zilverstand/novatorem.git
synced 2026-03-06 13:24:56 +01:00
Themes and Templates (#1)
* Update templates.json * Update templates.json * Update templates.json * Update spotify.py * Update spotify.py * Update spotify.py * Update spotify.py * Update spotify.py * Update spotify.py * Update spotify.py * Update spotify.py * Update spotify.py * Update templates.json
This commit is contained in:
committed by
Andrew Novac
parent
c63a193ed8
commit
a301a69078
@@ -86,10 +86,11 @@ def barGen(barCount):
|
|||||||
|
|
||||||
def getTemplate():
|
def getTemplate():
|
||||||
try:
|
try:
|
||||||
file = open("templates.json",)
|
file = open("api/templates.json","r")
|
||||||
templates = json.load(file)
|
templates = json.loads(file.read())
|
||||||
return templates["templates"][templates["current-theme"]]
|
return templates["templates"][templates["current-theme"]]
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(f"Failed to load templates.")
|
||||||
return FALLBACK_THEME
|
return FALLBACK_THEME
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,4 @@
|
|||||||
"light": "spotify.html.j2",
|
"light": "spotify.html.j2",
|
||||||
"dark": "spotify-dark.html.j2"
|
"dark": "spotify-dark.html.j2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user