diff options
Diffstat (limited to 'generate_html_de.py')
-rwxr-xr-x | generate_html_de.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generate_html_de.py b/generate_html_de.py index dd31eba..6384882 100755 --- a/generate_html_de.py +++ b/generate_html_de.py @@ -57,10 +57,10 @@ def parse_file(filename): env = jinja2.Environment(loader=jinja2.FileSystemLoader('templates')) template = env.get_template('german.html') - for los in tree.getiterator("Losungen"): + for los in tree.iter("Losungen"): article_list.append(parse_one(los)) - return template.render(articles=article_list).encode('utf8') + return template.render(articles=article_list) if __name__ == "__main__": |