aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/monthend_interest_recon.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/python/monthend_interest_recon.py b/python/monthend_interest_recon.py
index 429511a5..4e392952 100644
--- a/python/monthend_interest_recon.py
+++ b/python/monthend_interest_recon.py
@@ -160,6 +160,12 @@ def main():
default=False,
help="for automation or for monthly",
)
+ parser.add_argument(
+ "--accept",
+ action="store_true",
+ default=False,
+ help="for automation or for monthly",
+ )
args = parser.parse_args()
for cp in counterparties:
@@ -180,9 +186,7 @@ def main():
interest_recon["difference"] = (
interest_recon["amount"] - interest_recon["monthly_statement"]
)
- print(interest_recon)
- accept = input()
- if accept:
+ if args.accept:
df = export_data(start, end)
for k, v in interest_recon["difference"].items():
df.loc[k].loc["CSH_CASH"] -= v