diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-20 19:48:28 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-20 20:20:08 +0200 |
commit | ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f (patch) | |
tree | 8c92a741b37418e32e4a9de85f4077a41b42a61c /main.py | |
parent | ad64ff17e3aa7d7af40a3724a8cd9f19ca045422 (diff) | |
download | Trader-ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f.tar.gz Trader-ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f.tar.zst Trader-ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f.zip |
Use generic parser for market processing
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -149,7 +149,10 @@ def parse_args(argv): | |||
149 | parser.add_argument("--db-database", default="cryptoportfolio", | 149 | parser.add_argument("--db-database", default="cryptoportfolio", |
150 | help="Database access to database (default: cryptoportfolio)") | 150 | help="Database access to database (default: cryptoportfolio)") |
151 | 151 | ||
152 | return parser.parse_args(argv) | 152 | parsed = parser.parse_args(argv) |
153 | if parsed.action is None: | ||
154 | parsed.action = ["sell_all"] | ||
155 | return parsed | ||
153 | 156 | ||
154 | def process(market_config, market_id, user_id, args, pg_config): | 157 | def process(market_config, market_id, user_id, args, pg_config): |
155 | try: | 158 | try: |