summaryrefslogtreecommitdiff
path: root/weekly_planner_generator.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-11-02 15:13:52 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-11-02 15:13:52 +0100
commit642cac037d9d5a221eb0eb52288d7cd14c928b35 (patch)
treee2390f74bca33adc42f1dae519ae294534074d6d /weekly_planner_generator.py
parent0c1cb7ff53d17d6bd783a15fac39213c7ff031f4 (diff)
Add a cover to the weekly planner so that pages are right
Diffstat (limited to 'weekly_planner_generator.py')
-rwxr-xr-xweekly_planner_generator.py7
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)], [])