updated config
This commit is contained in:
+3
-3
@@ -176,7 +176,7 @@ class UPIParser:
|
||||
by_type[txn_type]["count"] += 1
|
||||
by_type[txn_type]["amount"] += amt
|
||||
|
||||
# Convert Decimal → string
|
||||
# Convert Decimal → string
|
||||
by_status_final = {
|
||||
k: {"count": v["count"], "amount": f"{v['amount']:.2f}"}
|
||||
for k, v in by_status.items()
|
||||
@@ -257,9 +257,9 @@ def print_summary(summary: Dict):
|
||||
# -------------------------
|
||||
if __name__ == "__main__":
|
||||
|
||||
file_path = r"C:\Users\2780475\Desktop\Test\TUMLUK_31052026_8C_UPI.txt.gz"
|
||||
file_path = r"C:\Users\2780475\Desktop\upi_file_based\TUMLUK_05062026_8C_UPI.txt"
|
||||
|
||||
parser = UPISwitchParser(file_path)
|
||||
parser = UPIParser(file_path)
|
||||
|
||||
transactions, metadata, summary = parser.parse()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user