Correction de l'affichage du temps restant
This commit is contained in:
parent
009e853fad
commit
432d23f13f
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue