From d5d71b4f515ca0003d52c3506376021a19876855 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 28 Apr 2017 16:33:42 +0200 Subject: [PATCH] Cache User settings --- digimarks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/digimarks.py b/digimarks.py index da46880..a57c30b 100644 --- a/digimarks.py +++ b/digimarks.py @@ -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