Commit f67c9472 authored by Ryan Herbert's avatar Ryan Herbert

my account only import json if needed

parent eced9a46
Pipeline #186226 passed with stages
in 16 minutes and 6 seconds
......@@ -100,12 +100,12 @@ def get_most_used_tags(group_list):
)
def index():
import json
start = time.time()
since = datetime.today() - timedelta(days=30)
if auth.is_admin() and 'data' in request.vars:
import json
group_list = json.loads(request.vars['data'])['group_ids']
else:
group_list = [int(g.id) for g in auth.get_user_groups() + auth.get_user_group_parents()]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment