Make sure getModifiedItemAttr always returns an int, unless otherwise wanting None

In py2, you could compare None to an int and it would always be less than. Unfortunately in py3, this is no longer the case. Returning getModifiedItemAttr as 0 allows us to not do a huge refactor.
This commit is contained in:
blitzmann
2017-11-04 18:20:00 -04:00
parent 56f34873a6
commit ce3b94696a
5 changed files with 9 additions and 8 deletions

View File

@@ -255,7 +255,7 @@ class Fit(object):
Projected is a recursion flag that is set to reduce recursions into projected fits
Basic is a flag to simply return the fit without any other processing
"""
pyfalog.debug("Getting fit for fit ID: {0}", fitID)
# pyfalog.debug("Getting fit for fit ID: {0}", fitID)
if fitID is None:
return None
fit = eos.db.getFit(fitID)