|
|
@@ -1,6 +1,7 @@
|
|
|
from flask import Blueprint, render_template, request, flash, redirect, url_for
|
|
|
from flask_login import login_required, current_user
|
|
|
from werkzeug.security import generate_password_hash, check_password_hash
|
|
|
+from sqlalchemy import desc
|
|
|
from .models import User, Art, List, Bids, Wallet, Stripe, TX, Hashchain
|
|
|
from . import db
|
|
|
|
|
|
@@ -272,8 +273,8 @@ def charge():
|
|
|
|
|
|
@dashboards.route('/hashchain', methods=['GET'])
|
|
|
def hashchain():
|
|
|
- hashchain = Hashchain.query.all()
|
|
|
- txlist = TX.query.all()
|
|
|
+ hashchain = Hashchain.query.order_by(desc(Hashchain.id)).all()
|
|
|
+ txlist = TX.query.order_by(desc(TX.id)).all()
|
|
|
seform = SearchForm()
|
|
|
|
|
|
return render_template('hash.html', user = current_user, hashchain = hashchain, txlist = txlist, seform = seform)
|