Skip to content

Commit eded976

Browse files
committed
[process-stats-dir] Fix row indexing
Apparently `namedtuple` can't be used with `vars` anymore.
1 parent 22d0a5a commit eded976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/process-stats-dir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def format_field(field, row):
356356
s += " :white_check_mark:"
357357
return s
358358
else:
359-
v = int(vars(row)[field])
359+
v = int(getattr(row, field))
360360
if row.name.startswith('time.'):
361361
return format_time(v)
362362
else:

0 commit comments

Comments
 (0)