fix message

This commit is contained in:
CHIEFSOFT\ameye
2025-02-18 07:57:39 -05:00
parent 63bbee3529
commit 992e4079fe
2 changed files with 28 additions and 2 deletions
+8 -1
View File
@@ -352,6 +352,11 @@ def salary_verifloan2():
account_found = count = len( account )
print("10000-a")
if account_found == 1 :
UPDATE_APPLICATION = "UPDATE loan_apply SET verified = now() WHERE uid::text = '" + loan_application_id + "' "
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
cursor.execute(UPDATE_APPLICATION)
loan_create(bvn,loan_application_id)
return {
"status": "1",
"message" : "Loan Verified",
@@ -361,7 +366,7 @@ def salary_verifloan2():
return {
"status": "-1",
"data": None,
"message" : "Invalid Loan",
"message" : "Invalid Loan or PIN",
"error": "1"
}, 404
@@ -376,6 +381,8 @@ def salary_verifloan2():
"data": None
}, 500
def loan_create(bvn,loan_application_id):
pass
def products():
product_data = [