Correction de l'affichage du temps restant

This commit is contained in:
guimoz 2017-01-27 01:18:36 +01:00
parent 009e853fad
commit 432d23f13f

View file

@ -102,9 +102,9 @@ def init_db():
cur_mysql.close()
def duration_format(seconds):
hours = seconds / 3600
hours = seconds // 3600
seconds -= 3600*hours
minutes = seconds / 60
minutes = seconds // 60
seconds -= 60*minutes
s_str = seconds <= 1 and 'seconde' or 'secondes'
m_str = minutes <= 1 and 'minute' or 'minutes'