Skip to content

Commit

Permalink
Stop sell price thrashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlund committed Aug 11, 2015
1 parent 8e45d14 commit a201ed2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/edapi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import sys
import textwrap

__version_info__ = ('3', '3', '2')
__version_info__ = ('3', '3', '3')
__version__ = '.'.join(__version_info__)

# ----------------------------------------------------------------
Expand Down Expand Up @@ -695,10 +695,9 @@ def commodity_int(key):
demand = bracket_levels[commodity['stockBracket']]
commodity['stock'] = str(commodity['stock'])+demand

# If demand is zero, zero out the sell price.
# If demand is zero, list as unknown.
if not (commodity['demand'] and commodity['demandBracket']):
commodity['demand'] = '?'
commodity['sellPrice'] = 0
else:
demand = bracket_levels[commodity['demandBracket']]
commodity['demand'] = str(commodity['demand'])+demand
Expand Down

0 comments on commit a201ed2

Please sign in to comment.