mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-07 00:15:10 +01:00
Cache User settings
This commit is contained in:
@@ -45,6 +45,7 @@ except AttributeError:
|
|||||||
|
|
||||||
# Cache the tags
|
# Cache the tags
|
||||||
all_tags = {}
|
all_tags = {}
|
||||||
|
settings = {}
|
||||||
|
|
||||||
|
|
||||||
def ifilterfalse(predicate, iterable):
|
def ifilterfalse(predicate, iterable):
|
||||||
@@ -671,7 +672,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)
|
||||||
all_themes[user.key] = get_tags_for_user(user.key)
|
settings[user.key] = {'theme': user.theme}
|
||||||
print(user.key)
|
print(user.key)
|
||||||
|
|
||||||
# Run when called standalone
|
# Run when called standalone
|
||||||
|
|||||||
Reference in New Issue
Block a user