Skip to content

Commit 8bd9e5d

Browse files
committed
Round the debug time sum
- Legacy-Id: 17998
1 parent 27384a1 commit 8bd9e5d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ietf/utils/templatetags/debug_filters.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
def timesum(value):
1010
"""
1111
Sum the times in a list of dicts; used for sql query debugging info"""
12-
sum = 0.0
13-
for v in value:
14-
sum += float(v['time'])
15-
return sum
12+
return round(sum(float(v['time']) for v in value), 3)
1613

1714

1815
@register.filter()

0 commit comments

Comments
 (0)