mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-28 18:52:00 +01:00
order transaction chart by date.
This commit is contained in:
parent
1e3d3ddd70
commit
cedce73f07
@ -203,7 +203,14 @@ def wallet():
|
|||||||
(1 - FEE_RESERVE, usr, wallet_id),
|
(1 - FEE_RESERVE, usr, wallet_id),
|
||||||
)
|
)
|
||||||
|
|
||||||
transactions = db.fetchall("SELECT * FROM apipayments WHERE wallet = ? AND pending = 0", (wallet_id,))
|
transactions = db.fetchall(
|
||||||
|
"""
|
||||||
|
SELECT * FROM apipayments
|
||||||
|
WHERE wallet = ? AND pending = 0
|
||||||
|
ORDER BY time
|
||||||
|
""",
|
||||||
|
(wallet_id,),
|
||||||
|
)
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"wallet.html", user_wallets=user_wallets, wallet=wallet, user=usr, transactions=transactions,
|
"wallet.html", user_wallets=user_wallets, wallet=wallet, user=usr, transactions=transactions,
|
||||||
@ -348,7 +355,7 @@ def api_checkinvoice(payhash):
|
|||||||
return jsonify({"PAID": "FALSE"}), 400
|
return jsonify({"PAID": "FALSE"}), 400
|
||||||
|
|
||||||
data = r.json()
|
data = r.json()
|
||||||
if "preimage" not in data or not data["preimage"]:
|
if "preimage" not in data:
|
||||||
return jsonify({"PAID": "FALSE"}), 400
|
return jsonify({"PAID": "FALSE"}), 400
|
||||||
|
|
||||||
db.execute("UPDATE apipayments SET pending = 0 WHERE payhash = ?", (payhash,))
|
db.execute("UPDATE apipayments SET pending = 0 WHERE payhash = ?", (payhash,))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user