Hybris95 / UEX-Trader

Simple Python GUI to interact with UEX-Corp for Buying/Selling goods
MIT License
5 stars 0 forks source link

[Bug] Factorise get_commodity_id in api.py #93

Closed Hybris95 closed 6 days ago

Hybris95 commented 1 week ago

Rework get_commodity_id to use fetch_data in api.py This way we are sure cache is properly used. Make sure fetch_data is properly try/catching exception like get_commodity_id used to.

Hybris95 commented 1 week ago

Also create a generic post_data that will be used by perform_trade. In this POST you have to make sure is_production is properly passed from ConfigManager