diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-28 18:32:39 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-28 18:32:39 +0100 |
| commit | 406d857c61fb128a48281a52899ddf77b68201be (patch) | |
| tree | 67fcdb30109ba1317c4971bbf9d04443966e4fed /megapixels/app/site | |
| parent | ef90adeb4230ac27c18d3ed9e2cfab000c8689e0 (diff) | |
threejs splash page on the index
Diffstat (limited to 'megapixels/app/site')
| -rw-r--r-- | megapixels/app/site/parser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py index c17d3b8a..ad4256ad 100644 --- a/megapixels/app/site/parser.py +++ b/megapixels/app/site/parser.py @@ -198,6 +198,8 @@ def format_metadata(section): """ meta = [] for line in section.split('\n'): + if ': ' not in line: + continue key, value = line[2:].split(': ', 1) meta.append("<div><div class='gray'>{}</div><div>{}</div></div>".format(key, value)) return "<div class='meta'>{}</div>".format(''.join(meta)) |
