mirror of https://github.com/snachodog/mybuddy.git
Fix linting issues
This commit is contained in:
parent
482f7242c2
commit
d5509bdb52
|
@ -18,15 +18,19 @@ def duration_string(duration, precision='s'):
|
||||||
if m > 0 and precision != 'h':
|
if m > 0 and precision != 'h':
|
||||||
if duration != '':
|
if duration != '':
|
||||||
duration += ', '
|
duration += ', '
|
||||||
duration += ngettext('%(minutes)s minute', '%(minutes)s minutes', m) % {
|
duration += ngettext(
|
||||||
'minutes': m
|
'%(minutes)s minute',
|
||||||
}
|
'%(minutes)s minutes',
|
||||||
|
m
|
||||||
|
) % {'minutes': m}
|
||||||
if s > 0 and precision != 'h' and precision != 'm':
|
if s > 0 and precision != 'h' and precision != 'm':
|
||||||
if duration != '':
|
if duration != '':
|
||||||
duration += ', '
|
duration += ', '
|
||||||
duration += ngettext('%(seconds)s second', '%(seconds)s seconds', s) % {
|
duration += ngettext(
|
||||||
'seconds': s
|
'%(seconds)s second',
|
||||||
}
|
'%(seconds)s seconds',
|
||||||
|
s
|
||||||
|
) % {'seconds': s}
|
||||||
|
|
||||||
return duration
|
return duration
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue