Skip to content

Commit

Permalink
Updated None || 0 check to meet requested style
Browse files Browse the repository at this point in the history
Updated for pull  request #263
  • Loading branch information
Cameron Grout committed Feb 23, 2015
1 parent be7e8be commit e082077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eos/saveddata/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def __generateDrain(self):
capAdded = 0
for mod in self.modules:
if mod.state >= State.ACTIVE:
if mod.getModifiedItemAttr("capacitorNeed") != 0 and mod.getModifiedItemAttr("capacitorNeed") is not None:
if (mod.getModifiedItemAttr("capacitorNeed") or 0) != 0:
cycleTime = mod.rawCycleTime or 0
reactivationTime = mod.getModifiedItemAttr("moduleReactivationDelay") or 0
fullCycleTime = cycleTime + reactivationTime
Expand Down

0 comments on commit e082077

Please sign in to comment.