summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-07-08 11:22:02 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-07-08 11:22:02 +0200
commita7d56b4798223357ad47857966da1a748c6d0983 (patch)
treed806d0e19bd2a1158923d613464ac5277a18e01d
parentd129c3fb0c2c7e2c08c2d594b0b5b560439ba337 (diff)
Flake8 fixes
-rwxr-xr-xplanner_generator.py8
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"),