diff options
Diffstat (limited to 'planner_generator.py')
-rwxr-xr-x | planner_generator.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/planner_generator.py b/planner_generator.py index ea802e4..4850fd1 100755 --- a/planner_generator.py +++ b/planner_generator.py @@ -53,7 +53,9 @@ class Generator: self.longitude = longitude self.timezone = timezone - self.out_file = out_file or (template or self.default_template) + ".pdf" + self.out_file = out_file or ( + template or self.default_template + ) + ".pdf" env = jinja2.Environment() self.templates_dir = "templates" @@ -83,8 +85,6 @@ class Generator: return "cover-A4-r.svg" return "cover-A6-r.svg" - - def render_page(self, page: int, **kw): # page counts starts with 0 if page == 0: @@ -298,7 +298,7 @@ class EphemerismonthGenerator(MonthGenerator): moon_icon = "○" else: moon_icon = "☾" - text = ("☼ {sunrise} — {noon} — {sunset} " \ + text = ("☼ {sunrise} — {noon} — {sunset} " + "{moon_icon} {moon_phase}").format( sunrise=sunrise.strftime("%H:%M"), noon=noon.strftime("%H:%M"), |