- market_config = list(fetch_markets(pg_config, str(user_id)))[0][0]
- return market.Market.from_config(market_config, debug=debug)
+ market_config = list(fetch_markets(pg_config, str(user_id)))[0][1]
+ args = type('Args', (object,), { "debug": debug, "quiet": False })()
+ return market.Market.from_config(market_config, args, user_id=user_id, report_path=report_path)