From a7d56b4798223357ad47857966da1a748c6d0983 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 8 Jul 2022 11:22:02 +0200 Subject: Flake8 fixes --- planner_generator.py | 8 ++++---- 1 file 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"), -- cgit v1.2.3