Permalink
Browse files

Uses percentile sell/buy values instead of min/max

  • Loading branch information...
1 parent 8a48cb8 commit 0ba25ca7ee346a54f43fbf52b89587670e25e51b @sudorandom sudorandom committed Dec 27, 2012
Showing with 4 additions and 5 deletions.
  1. +3 −3 cargoscanner.py
  2. +1 −2 requirements.txt
View
@@ -202,9 +202,9 @@ def get_market_values(eve_types):
for stat in marketstat.find(stat_type):
props[stat.tag] = float(stat.text)
v[stat_type] = props
- v['all']['price'] = v['all']['avg']
- v['buy']['price'] = v['buy']['max']
- v['sell']['price'] = v['sell']['min']
+ v['all']['price'] = v['all']['percentile']
+ v['buy']['price'] = v['buy']['percentile']
+ v['sell']['price'] = v['sell']['percentile']
market_prices[k] = v
# Cache for up to 10 hours
View
@@ -1,6 +1,5 @@
humanize
-mysql-connector-repackaged
pylibmc
flask
Flask-Cache
-Flask-SQLAlchemy
+sqlalchemy

0 comments on commit 0ba25ca

Please sign in to comment.