From ae3afc93c3b78915a1c674d85168dc34e29c8729 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 9 Jun 2017 09:25:43 +0200 Subject: [PATCH] space --- pandora/annotation/views.py | 2 +- pandora/app/config.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora/annotation/views.py b/pandora/annotation/views.py index b8345d6b8..d57a20cc7 100644 --- a/pandora/annotation/views.py +++ b/pandora/annotation/views.py @@ -34,7 +34,7 @@ def get_annotation_or_404_json(id): def parse_query(data, user): query = {} query['range'] = [0, 100] - query['sort'] = [{'key':'in', 'operator':'+'}] + query['sort'] = [{'key': 'in', 'operator': '+'}] for key in ('keys', 'group', 'range', 'sort', 'query'): if key in data: query[key] = data[key] diff --git a/pandora/app/config.py b/pandora/app/config.py index 4e46d7e6c..e2e4ffbc1 100644 --- a/pandora/app/config.py +++ b/pandora/app/config.py @@ -278,11 +278,11 @@ def update_static(): if os.path.splitext(f)[-1] in ('.js', '.json'): f = os.path.join(root, f) os.system('gzip -9 -c "%s" > "%s.gz"' % (f, f)) - + for name in ('logo', 'icon', 'document'): - site = os.path.join(settings.STATIC_ROOT, 'png/%s.%s.png'%(name, settings.CONFIG['site']['id'])) - pandora = os.path.join(settings.STATIC_ROOT, 'png/%s.pandora.png'%name) - image = os.path.join(settings.STATIC_ROOT, 'png/%s.png'%name) + site = os.path.join(settings.STATIC_ROOT, 'png/%s.%s.png' % (name, settings.CONFIG['site']['id'])) + pandora = os.path.join(settings.STATIC_ROOT, 'png/%s.pandora.png' % name) + image = os.path.join(settings.STATIC_ROOT, 'png/%s.png' % name) if not os.path.exists(image): if os.path.exists(site): shutil.copyfile(site, image)