Fix code
This commit is contained in:
+2
-2
@@ -405,8 +405,8 @@ def load_offer(loan,bvn):
|
|||||||
select_demoS = cursor.fetchall()
|
select_demoS = cursor.fetchall()
|
||||||
|
|
||||||
loan_data = json.dumps( [dict(ix) for ix in select_demoS] )
|
loan_data = json.dumps( [dict(ix) for ix in select_demoS] )
|
||||||
loan_result = json.loads( loan_data[0] )
|
loan_result = json.loads( loan_data )
|
||||||
return json.loads( loan_data[0] )
|
return json.loads( loan_data )
|
||||||
|
|
||||||
def offers():
|
def offers():
|
||||||
OFFER_QUERY = "SELECT uid AS cid,loan,amount,description,days_duration,active FROM loan_offers ORDER BY amount ASC"
|
OFFER_QUERY = "SELECT uid AS cid,loan,amount,description,days_duration,active FROM loan_offers ORDER BY amount ASC"
|
||||||
|
|||||||
Reference in New Issue
Block a user