We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f2eae commit e4397a9Copy full SHA for e4397a9
sc2reader/events.py
@@ -19,12 +19,12 @@ def load_context(self, replay):
19
# print "Hi", self.pid, replay.person, self.__class__
20
if self.pid != 16 and self.pid not in replay.person:
21
self.logger.error("Bad pid ({}) for event {} at {}.".format(self.pid, self.__class__, Length(seconds=int(self.frame/16))))
22
-
+
23
if self.pid != 16:
24
self.player = replay.person[self.pid]
25
26
def _str_prefix(self):
27
- player_name = self.player.name if self.getattr(self,'pid', 16)!=16 else "Global"
+ player_name = self.player.name if getattr(self,'pid', 16)!=16 else "Global"
28
return "%s\t%-15s " % (Length(seconds=int(self.frame/16)), player_name)
29
30
def __str__(self):
0 commit comments