changed config to prod, and fetching only today's files from SFTP

This commit is contained in:
2026-02-11 14:20:12 +05:30
parent 81ad34fd65
commit 2e07dcc96a
5 changed files with 14 additions and 270 deletions

View File

@@ -34,7 +34,7 @@ class Repository:
cursor = conn.cursor()
cursor.execute(
"SELECT COUNT(*) FROM dep_account WHERE link_accno = :accno",
{'accno': account_number}
{'accno': account_number[-12:]}
)
count = cursor.fetchone()[0]
return count > 0
@@ -237,7 +237,7 @@ class Repository:
try:
cursor = conn.cursor()
# Check if ach_api_log table exists
# Check if ach_api_log_temp table exists
try:
cursor.execute("SELECT COUNT(*) FROM ach_api_log_temp WHERE ROWNUM = 1")
logger.info("✓ ach_api_log_temp table exists")