aboutsummaryrefslogtreecommitdiffstats
path: root/python/insert_fx_id.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/insert_fx_id.py')
-rw-r--r--python/insert_fx_id.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/insert_fx_id.py b/python/insert_fx_id.py
index 93015a62..30b0548d 100644
--- a/python/insert_fx_id.py
+++ b/python/insert_fx_id.py
@@ -149,6 +149,9 @@ def main(workdate):
matched_candidate.id,
),
)
+ print(
+ f"MATCHED {matched_candidate.id}: {table} to {row.cpty_id}"
+ )
logger.info("UPDATED %", matched_candidate.id)
conn.commit()
else:
@@ -163,7 +166,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
"workdate",
- type=datetime.date,
+ type=datetime.date.fromisoformat,
nargs="?",
default=datetime.date.today(),
help="Workdate (YYYY-MM-DD)",