diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,11 +5,11 @@ args = helper.main_parse_args(sys.argv[1:]) | |||
5 | 5 | ||
6 | pg_config, report_path = helper.main_parse_config(args.config) | 6 | pg_config, report_path = helper.main_parse_config(args.config) |
7 | 7 | ||
8 | for market_config, user_id in helper.main_fetch_markets(pg_config): | 8 | for market_config, user_id in helper.main_fetch_markets(pg_config, args.user): |
9 | try: | 9 | try: |
10 | market_config["apiKey"] = market_config.pop("key") | 10 | market_config["apiKey"] = market_config.pop("key") |
11 | user_market = market.Market.from_config(market_config, debug=args.debug) | 11 | user_market = market.Market.from_config(market_config, debug=args.debug) |
12 | helper.main_process_market(user_market, before=args.before, after=args.after) | 12 | helper.main_process_market(user_market, args.action, before=args.before, after=args.after) |
13 | except Exception as e: | 13 | except Exception as e: |
14 | print("{}: {}".format(e.__class__.__name__, e)) | 14 | print("{}: {}".format(e.__class__.__name__, e)) |
15 | finally: | 15 | finally: |