diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/handle_default.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/handle_default.py b/python/handle_default.py index 80ba0ac7..e0d4cc7e 100644 --- a/python/handle_default.py +++ b/python/handle_default.py @@ -98,6 +98,10 @@ For instance: python handle_default.py 210065 Senior""" ) else: + from markit_red import download_report, update_redcodes as upd_redcodes + + fname = next(download_report("REDIndexCodes")) + upd_redcodes(fname[0]) conn = serenitas_pool.getconn() company_id = int(argv[1]) seniority = argv[2] @@ -105,4 +109,6 @@ For instance: recordslist = affected_indices(company_id, seniority, conn) newids = create_newindices(recordslist, recovery, lastdate, conn) update_indexmembers(newids, company_id, seniority, conn) + for index in set(r.index for r in recordslist): + update_redcodes(index, conn) serenitas_pool.putconn(conn) |
