From 716f765df5205a3ed3847a345895ea3a1fb1baaf Mon Sep 17 00:00:00 2001 From: Bishwajeet Kumar Rajak Date: Thu, 19 Mar 2026 11:37:16 +0530 Subject: [PATCH] updated configuration --- db/repository.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/db/repository.py b/db/repository.py index f00c902..6ae825d 100644 --- a/db/repository.py +++ b/db/repository.py @@ -166,7 +166,7 @@ class Repository: cursor.execute( """ SELECT COUNT(*) - FROM neft_processed_files + FROM rtgs_processed_files WHERE filename = :filename AND bankcode = :bankcode """, @@ -190,7 +190,7 @@ class Repository: file_data = processed_file.to_dict() insert_sql = """ - INSERT INTO neft_processed_files ( + INSERT INTO rtgs_processed_files ( filename, bankcode, file_path, transaction_count, status, error_message, processed_at ) VALUES ( @@ -225,7 +225,7 @@ class Repository: cursor.execute( """ SELECT filename - FROM neft_processed_files + FROM rtgs_processed_files WHERE bankcode = :bankcode ORDER BY processed_at DESC """, @@ -235,7 +235,7 @@ class Repository: cursor.execute( """ SELECT filename - FROM neft_processed_files + FROM rtgs_processed_files ORDER BY processed_at DESC """ ) @@ -290,12 +290,12 @@ class Repository: ) try: - cursor.execute("SELECT COUNT(*) FROM neft_processed_files WHERE ROWNUM = 1") - logger.info("✓ neft_processed_files table exists") + cursor.execute("SELECT COUNT(*) FROM rtgs_processed_files WHERE ROWNUM = 1") + logger.info("✓ rtgs_processed_files table exists") except Exception as e: - logger.error(f"✗ neft_processed_files table not found: {e}") + logger.error(f"✗ rtgs_processed_files table not found: {e}") raise SystemExit( - "FATAL: neft_processed_files table must be created manually before running this application" + "FATAL: rtgs_processed_files table must be created manually before running this application" ) logger.info("Database tables verified successfully")