From 6431d06048791763f3644b3a0457cc9c4f1df6d3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 16 Dec 2018 18:11:12 +0100 Subject: csvs and citations --- megapixels/app/site/parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'megapixels') diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py index ff209793..ecfae0cb 100644 --- a/megapixels/app/site/parser.py +++ b/megapixels/app/site/parser.py @@ -73,9 +73,9 @@ def format_applet(section, s3_path): if command == 'load_file': if opt[0:4] != 'http': applet['opt'] = s3_path + opt - if len(payload) > 1: - applet['fields'] = payload[1] - return "
".format(className, json.dumps(applet)) + if len(payload) > 1: + applet['fields'] = payload[1:] + return "
".format(json.dumps(applet)) def parse_markdown(sections, s3_path, skip_h1=False): """ -- cgit v1.2.3-70-g09d2