Skip to content

Commit

Permalink
Fix tempo & ecowatt
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Jul 19, 2023
1 parent a58f60a commit a2cd448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/ajax.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ def account_status(self):

def fetch_tempo(self):
title(f"Récupération des jours Tempo.")
return Tempo(self.config, self.db).fetch()
return Tempo().fetch()

def get_tempo(self):
title(f"Affichage des jours Tempo.")
return Tempo(self.config, self.db).get()
return Tempo().get()

def fetch_ecowatt(self):
title(f"Récupération des jours Ecowatt.")
return Ecowatt(self.config, self.db).fetch()
return Ecowatt().fetch()

def get_ecowatt(self):
title(f"Affichage des jours Ecowatt.")
return Ecowatt(self.config, self.db).get()
return Ecowatt().get()

def generate_price(self):
title(f"[{self.usage_point_id}] Calcul des coûts par type d'abonnements.")
Expand Down

0 comments on commit a2cd448

Please sign in to comment.