|
@@ -1009,7 +1009,7 @@ def user_wealth(user_id):
|
|
|
), 0)
|
|
|
FROM loans
|
|
|
WHERE loans.user_id = ?)
|
|
|
- ''', (currency_id(), user_id,))
|
|
|
+ ''', (currency_id(), user_id, user_id,))
|
|
|
|
|
|
return current_cursor.fetchone()[0]
|
|
|
|
|
@@ -1358,7 +1358,7 @@ def repay_loan(loan_id, amount, known_user_id=None):
|
|
|
execute('''
|
|
|
DELETE FROM loans
|
|
|
WHERE rowid = ?
|
|
|
- ''', (loan_id, ))
|
|
|
+ ''', (loan_id,))
|
|
|
|
|
|
|
|
|
def take_out_personal_loan(user_id, amount):
|