Merge branch 'themes'
This commit is contained in:
commit
13e90c22f8
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ def set_theme(username, value):
|
|||
|
||||
def get_theme(username):
|
||||
username = username.lower()
|
||||
if "themes" in accounts_db.find_one({"username": username}).keys():
|
||||
if "theme" in accounts_db.find_one({"username": username}).keys():
|
||||
return accounts_db.find_one({"username": username})['theme']
|
||||
else:
|
||||
set_theme(username, "default")
|
||||
|
|
Loading…
Add table
Reference in a new issue