Skip to content

Commit

Permalink
fix: tempo data in usage_point
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Jan 29, 2024
1 parent 7becf9e commit 27df24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/usage_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ def display(self):
body += self.offpeak_hours_table()

# TEMPO
tempo_config = self.db.get_tempo_config("price")
if tempo_config and "enable" in tempo_config and tempo_config["enable"]:
if self.usage_point_config.plan == "Tempo":
tempo_config = self.db.get_tempo_config("price")
body += f"<h1>Tempo</h1>"
today = datetime.combine(datetime.now(), datetime.min.time())
tomorow = datetime.combine(datetime.now() + timedelta(days=1), datetime.min.time())
Expand Down

0 comments on commit 27df24c

Please sign in to comment.