summaryrefslogtreecommitdiff
path: root/megapixels/app
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-16 17:47:21 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-16 17:47:21 +0100
commit948174f04d9dea93271bec62283b1c09e687e157 (patch)
treee755bb15d77ef21e43744fc07397b4b2b5cb20ca /megapixels/app
parent00eb85af05208e2129e7eba46da795e4528d2735 (diff)
map and citations workin
Diffstat (limited to 'megapixels/app')
-rw-r--r--megapixels/app/site/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py
index de3ce1ff..ff209793 100644
--- a/megapixels/app/site/parser.py
+++ b/megapixels/app/site/parser.py
@@ -70,12 +70,12 @@ def format_applet(section, s3_path):
applet['command'] = command
if opt:
applet['opt'] = opt
- if command == 'load file':
+ if command == 'load_file':
if opt[0:4] != 'http':
applet['opt'] = s3_path + opt
if len(payload) > 1:
applet['fields'] = payload[1]
- return "<section><div class='applet' data-payload='{}'></div></section>".format(json.dumps(applet))
+ return "<section class='applet_container'><div class='applet' data-payload='{}'></div></section>".format(className, json.dumps(applet))
def parse_markdown(sections, s3_path, skip_h1=False):
"""