Skip to content

Commit 82c793e

Browse files
committed
Add datetime (start or end?) to the game summary.
1 parent 285aeff commit 82c793e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sc2reader/resources.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@ def __init__(self, summary_file, filename=None, **options):
688688
self.game_length = utils.Length(seconds=self.parts[0][7])
689689
self.real_length = utils.Length(seconds=self.parts[0][7]/GAME_SPEED_FACTOR[self.game_speed])
690690

691+
# TODO: Is this the start or end time?
692+
self.date = datetime.utcfromtimestamp(self.parts[0][8])
693+
691694
self.load_lobby_properties()
692695
self.load_player_info()
693696
self.load_player_graphs()
@@ -744,7 +747,6 @@ def load_map_data(self):
744747
def load_player_graphs(self):
745748
# Parse graph and stats stucts, for each player
746749
for pid, p in self.player.items():
747-
print type(pid), type(p)
748750
# Graph stuff
749751
xy = [(o[2], o[0]) for o in self.parts[4][0][2][1][p.pid]]
750752
p.army_graph = Graph([], [], xy_list=xy)

0 commit comments

Comments
 (0)