Skip to content

Commit 00279a4

Browse files
committed
Add main block to generate module, revert tuple conversion
1 parent 4a22dca commit 00279a4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

generate.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ def get_completion_progress() -> (
7171
)
7272

7373

74-
template = Template(Path('template.html').read_text())
74+
if __name__ == '__main__':
75+
template = Template(Path('template.html').read_text())
7576

76-
output = template.render(
77-
completion_progress=tuple(get_completion_progress()),
78-
generation_time=generation_time,
79-
)
77+
output = template.render(
78+
completion_progress=get_completion_progress(),
79+
generation_time=generation_time,
80+
)
8081

81-
Path('index.html').write_text(output)
82+
Path('index.html').write_text(output)

0 commit comments

Comments
 (0)