We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a22dca commit 00279a4Copy full SHA for 00279a4
generate.py
@@ -71,11 +71,12 @@ def get_completion_progress() -> (
71
)
72
73
74
-template = Template(Path('template.html').read_text())
+if __name__ == '__main__':
75
+ template = Template(Path('template.html').read_text())
76
-output = template.render(
77
- completion_progress=tuple(get_completion_progress()),
78
- generation_time=generation_time,
79
-)
+ output = template.render(
+ completion_progress=get_completion_progress(),
+ generation_time=generation_time,
80
+ )
81
-Path('index.html').write_text(output)
82
+ Path('index.html').write_text(output)
0 commit comments