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

Cache User settings

This commit is contained in:
2017-04-28 16:33:42 +02:00
parent 044f507aa2
commit d5d71b4f51

View File

@@ -45,6 +45,7 @@ except AttributeError:
# Cache the tags
all_tags = {}
settings = {}
def ifilterfalse(predicate, iterable):
@@ -671,7 +672,7 @@ users = User.select()
print('Current user keys:')
for user in users:
all_tags[user.key] = get_tags_for_user(user.key)
all_themes[user.key] = get_tags_for_user(user.key)
settings[user.key] = {'theme': user.theme}
print(user.key)
# Run when called standalone