1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Something with name clashes

This commit is contained in:
2017-08-14 13:41:58 +02:00
parent ab06f7e583
commit 8077499eae

View File

@@ -133,7 +133,7 @@ except AttributeError:
# Cache the tags # Cache the tags
all_tags = {} all_tags = {}
settings = {} usersettings = {}
def ifilterfalse(predicate, iterable): def ifilterfalse(predicate, iterable):
@@ -384,7 +384,7 @@ def get_cached_tags(userkey):
def get_theme(userkey): def get_theme(userkey):
try: try:
usertheme = settings[userkey]['theme'] usertheme = usersettings[userkey]['theme']
return themes[usertheme] return themes[usertheme]
except KeyError: except KeyError:
return themes[DEFAULT_THEME] # default return themes[DEFAULT_THEME] # default
@@ -777,7 +777,7 @@ users = User.select()
print('Current user keys:') print('Current user keys:')
for user in users: for user in users:
all_tags[user.key] = get_tags_for_user(user.key) all_tags[user.key] = get_tags_for_user(user.key)
settings[user.key] = {'theme': user.theme} usersettings[user.key] = {'theme': user.theme}
print(user.key) print(user.key)
# Run when called standalone # Run when called standalone