From df2e85d7b449e3a5b8af0d3f74ca8aa7c927d149 Mon Sep 17 00:00:00 2001 From: Henry Doupe Date: Wed, 14 Mar 2018 16:16:15 -0400 Subject: [PATCH] Actually add the submit_data.py file --- webapp/apps/taxbrain/submit_data.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 webapp/apps/taxbrain/submit_data.py diff --git a/webapp/apps/taxbrain/submit_data.py b/webapp/apps/taxbrain/submit_data.py new file mode 100644 index 00000000..9ba341f4 --- /dev/null +++ b/webapp/apps/taxbrain/submit_data.py @@ -0,0 +1,26 @@ +from collections import namedtuple + +PostMeta = namedtuple( + 'PostMeta', + ['request', + 'personal_inputs', + 'json_reform', + 'model', + 'stop_submission', + 'has_errors', + 'errors_warnings', + 'start_year', + 'data_source', + 'do_full_calc', + 'is_file', + 'reform_dict', + 'assumptions_dict', + 'reform_text', + 'assumptions_text', + 'submitted_ids', + 'max_q_length', + 'user', + 'url'] +) + +BadPost = namedtuple('BadPost', ['http_response_404', 'has_errors'])