changed config to prod, and fetching only today's files from SFTP
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user