Loan result

This commit is contained in:
CHIEFSOFT\ameye
2025-02-17 13:52:32 -05:00
parent e81b90b455
commit 586364c31a
+5 -3
View File
@@ -160,7 +160,7 @@ def salary_demousers():
return {
"demo_data": result_demo_data,
}, 200
# VARCHAR(125),
# offers INT DEFAULT 0,
@@ -245,14 +245,16 @@ def salary_loanselect2():
# validate input
loan = data["loan"]
bvn = data["bvn"]
print ("here - 001 ")
if loan != '' and bvn != '' :
loan = load_offer(loan,bvn)
print ("here - 002 ")
loan_result = load_offer(loan,bvn)
INSERT_LOAN ="INSERT INTO loan_select (loan, bvn) VALUES(%s, %s)"
new_data = (loan,bvn)
with connection:
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
cursor.execute(INSERT_LOAN, new_data)
print ("here - 003 ")
return {
"message": "REQUEST_AMOUNT",
"loan": loan,