diff --git a/CHANGES.txt b/CHANGES.txt index 29eedbfb..0088e6ce 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,9 @@ TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014 ============================================================================== +v7.3.1 Jul 21 2015: +. (kfsone) Fix for edapi. + Jul 07 2015: . (kfsone) Fixed division by zero in transfers.py with empty file diff --git a/plugins/edapi_plug.py b/plugins/edapi_plug.py index 31da8354..d82091e6 100644 --- a/plugins/edapi_plug.py +++ b/plugins/edapi_plug.py @@ -604,7 +604,7 @@ def run(self): f.write("\t+ {}\n".format(commodity['categoryname'])) # If stock is zero, list it as unavailable. - if commodity['stock'] == 0: + if commodity['stock'] or 0 == 0: commodity['stock'] = '-' else: demand = bracket_levels[int(commodity['stockBracket'])] @@ -612,7 +612,7 @@ def run(self): # If demand is zero, zero out the sell price. if (commodity['demand'] == 0 or - commodity['demandBracket'] == 0 + commodity['demandBracket'] or 0 == 0 ): commodity['demand'] = '?' commodity['sellPrice'] = 0