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.
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
Rework
get_commodity_id
to usefetch_data
in api.py This way we are sure cache is properly used. Make surefetch_data
is properly try/catching exception likeget_commodity_id
used to.