diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-10-02 12:43:04 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-10-02 12:50:20 +0200 |
commit | 3f0ac1ca6746908e1aa1c87745c0bf7a1123d1c9 (patch) | |
tree | 20e6edf2f1add071aafb87d3c168bedd92f30911 /generate_html.py | |
parent | e648194489727c0d67d20a2edd79cb2fb2f78e04 (diff) | |
download | hesla-3f0ac1ca6746908e1aa1c87745c0bf7a1123d1c9.tar.gz |
Add Chrome webapp.
Diffstat (limited to 'generate_html.py')
-rwxr-xr-x | generate_html.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/generate_html.py b/generate_html.py index fdd4727..d0d5f58 100755 --- a/generate_html.py +++ b/generate_html.py @@ -62,6 +62,13 @@ def parse_one(elem): sect = elem.find(tst) for el in parse_body(sect): out.append(el) + + readings = [] + for read in ['SR', 'CR']: + sect = elem.find(read) + readings = [el.text for el in elem.findall("SL")] + for read_el in elem.find("SL"): + read_text = read_el.text return out |