Skip to content
Extraits de code Groupes Projets
Valider 8d86ce66 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

Back to value origin for batch launch

parent 74619c05
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -43,11 +43,7 @@ class AccOperation(models.Model): ...@@ -43,11 +43,7 @@ class AccOperation(models.Model):
"""This method is called from a cron job. """This method is called from a cron job.
It is used to get data from Enedis with API. It is used to get data from Enedis with API.
""" """
# TODO: Optimiser fonction CRON day_birthday = date.today() - relativedelta(months=1, days=10)
# day = (date.today() - relativedelta(days=10)).day
# search by day (integer computed)
# day_birthday = date.today() - relativedelta(months=1, days=10)
day_birthday = date.today() - relativedelta(months=1, days=8)
records = self.search( records = self.search(
[ [
("birthday_date", "=", day_birthday.day), ("birthday_date", "=", day_birthday.day),
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter