summaryrefslogtreecommitdiff
path: root/megapixels/app/site/parser.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-04-16 18:55:02 +0200
committerJules Laplace <julescarbon@gmail.com>2019-04-16 18:55:02 +0200
commit9d6d12f0b16d10219c62f25ce036b9377417de70 (patch)
tree4c44f95e41e5e136d75ab0a521531fd40a8e8bcd /megapixels/app/site/parser.py
parent391b945604a65f09da7d3f069dcef5a571e9b55c (diff)
build
Diffstat (limited to 'megapixels/app/site/parser.py')
-rw-r--r--megapixels/app/site/parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py
index aa2ddcda..1489d056 100644
--- a/megapixels/app/site/parser.py
+++ b/megapixels/app/site/parser.py
@@ -60,8 +60,7 @@ def parse_markdown(metadata, sections, s3_path, skip_h1=False):
current_group.append(section)
in_stats = True
if 'end sidebar' in section.lower():
- groups.append(format_section(current_group, s3_path, 'right-sidebar', tag='div'))
- current_group = []
+ current_group = [format_section(current_group, s3_path, 'right-sidebar', tag='div')]
in_stats = False
elif in_stats and not section.strip().startswith('## ') and 'end sidebar' not in section.lower():
current_group.append(section)