diff options
author | emkael <emkael@tlen.pl> | 2019-08-01 14:16:52 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-08-01 14:19:26 +0200 |
commit | 2cf067473e78844aa616de98bcf0cfcadada2431 (patch) | |
tree | d28970628cd8b4ad0b07607606bf498d97377294 /http/api | |
parent | 05d8c2a8b6801533144e1c0aa7e550ec44e0d946 (diff) |
DD hand analysis optional in API version
Fixes #3
Diffstat (limited to 'http/api')
-rw-r--r-- | http/api/api.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/http/api/api.py b/http/api/api.py index 6a9a785..0e5da8d 100644 --- a/http/api/api.py +++ b/http/api/api.py @@ -102,6 +102,7 @@ def handle_upload(response, request): output_id, output_path = _get_file_id() token = _get_rand_string(16) output_buffer = StringIO() + output.analyze = params.get('analyze_deals', False) output.output_content(output_buffer, dealset) with file(output_path, 'w') as output_file: json.dump({ |