Merge "Fix 'openreviews' script to work with Python3"

This commit is contained in:
Zuul 2022-04-14 21:18:02 +00:00 committed by Gerrit Code Review
commit fe05f53545
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def quartile_age(changes, quartile=2, key='age'):
if not changes:
return 0
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)