Skip to content

Commit 5ab5267

Browse files
committed
add length to toDict processor
1 parent d6b842f commit 5ab5267

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sc2reader/processors/todict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def __getattr(object, name, default):
2323
'frames': _getattr(replay, 'frames'),
2424
'build': _getattr(replay, 'build'),
2525
'release': _getattr(replay, 'release_string'),
26+
'length': _getattr(replay, 'length').seconds,
2627
}
2728
players = []
2829
for player in replay.players:

0 commit comments

Comments
 (0)