Skip to content

Commit

Permalink
Merge pull request #102 from cclauss/patch-4
Browse files Browse the repository at this point in the history
Workaround for missing speed in GAME_SPEED_FACTOR
  • Loading branch information
StoicLoofah authored Nov 5, 2019
2 parents 7ca1594 + eff2924 commit 9d97aef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sc2reader/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,8 @@ def load_details(self):

self.game_length = self.length
self.real_length = utils.Length(
seconds=int(
self.length.seconds / GAME_SPEED_FACTOR[self.expansion][self.speed]
)
seconds=self.length.seconds
// GAME_SPEED_FACTOR[self.expansion].get(self.speed, 1.0)
)
self.start_time = datetime.utcfromtimestamp(
self.unix_timestamp - self.real_length.seconds
Expand Down

0 comments on commit 9d97aef

Please sign in to comment.