Commit 6c4e164e authored by JonathanMM's avatar JonathanMM

Nettoyage de variables non utilisé

parent 83df173c
......@@ -170,8 +170,6 @@ def debuterCalculResumeOfResume(periodeOrigine, periodeFinale, dateCourante = da
#StatutConso
def calculerResumeConso(dateConsoDT, dureeConso):
dateConso = dateConsoDT.strftime("%Y-%m-%d %H:%M:%S")
minuteAvant = dateConsoDT - datetime.timedelta(minutes=1)
dateConsoAvant = minuteAvant.strftime("%Y-%m-%d %H:%M:%S")
finConso = dateConsoDT + datetime.timedelta(minutes=dureeConso)
dateConsoFin = finConso.strftime("%Y-%m-%d %H:%M:%S")
......@@ -231,7 +229,6 @@ def calculerResumeOfResumeConso(dateConsoDT, dureeConsoOrigine, dureeConsoFinale
requete = mysql.cursor()
requete.execute("SELECT "+', '.join(proprietes)+" FROM `resumeConso` WHERE duree = "+str(dureeConsoOrigine)+" and date >= '"+dateConso+"' and date < '"+dateConsoFin+"' order by date")
consos = requete.fetchall()
precedentCode = None
infosCourantes = {}
for row in consos:
for i, cle in enumerate(proprietes):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment