Fix 'openreviews' script to work with Python3
Change-Id: Iadbbc00252bdbc3987d072e9064e80be7a8d01f2
This commit is contained in:
parent
98e27f513d
commit
fac90aa416
@ -52,7 +52,7 @@ def quartile_age(changes, quartile=2, key='age'):
|
|||||||
if not changes:
|
if not changes:
|
||||||
return 0
|
return 0
|
||||||
changes = sorted(changes, key=lambda change: change[key])
|
changes = sorted(changes, key=lambda change: change[key])
|
||||||
quartile_age = changes[len(changes) * quartile / 4][key]
|
quartile_age = changes[len(changes) * quartile // 4][key]
|
||||||
return sec_to_period_string(quartile_age)
|
return sec_to_period_string(quartile_age)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user