mirror of
https://github.com/Alvin-Zilverstand/novatorem.git
synced 2026-03-06 11:07:09 +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():
|
||||
try:
|
||||
file = open("templates.json",)
|
||||
templates = json.load(file)
|
||||
file = open("api/templates.json","r")
|
||||
templates = json.loads(file.read())
|
||||
return templates["templates"][templates["current-theme"]]
|
||||
except:
|
||||
except Exception as e:
|
||||
print(f"Failed to load templates.")
|
||||
return FALLBACK_THEME
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user