fix message
This commit is contained in:
+8
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user