diff options
Diffstat (limited to 'weekly_planner_generator.py')
-rwxr-xr-x | weekly_planner_generator.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/weekly_planner_generator.py b/weekly_planner_generator.py index 7f1d64a..4ba491e 100755 --- a/weekly_planner_generator.py +++ b/weekly_planner_generator.py @@ -24,6 +24,13 @@ def main(): year = 2022 + template_cover = loader.load(env, 'cover-A6-r.svg') + with open("build/week_on_two_pages-A6-{year}-{page:03}.svg".format( + year=year, + page=0, + ), 'w') as fp: + fp.write(template_cover.render(year=year)) + cal = calendar.Calendar() weeks = sum([r[0] for r in cal.yeardatescalendar(2022, width=1)], []) |