|
@@ -1,7 +1,7 @@
|
|
|
from flask import Blueprint, render_template, request, flash, redirect, url_for
|
|
from flask import Blueprint, render_template, request, flash, redirect, url_for
|
|
|
from flask_login import login_required, current_user
|
|
from flask_login import login_required, current_user
|
|
|
from werkzeug.security import generate_password_hash, check_password_hash
|
|
from werkzeug.security import generate_password_hash, check_password_hash
|
|
|
-from .models import User, Art, List, Bids, Wallet, Stripe
|
|
|
|
|
|
|
+from .models import User, Art, List, Bids, Wallet, Stripe, TX, Hashchain
|
|
|
from . import db
|
|
from . import db
|
|
|
|
|
|
|
|
from . import dispatch
|
|
from . import dispatch
|
|
@@ -56,7 +56,6 @@ def profile():
|
|
|
|
|
|
|
|
|
|
|
|
|
# Wallet Top Up Form
|
|
# Wallet Top Up Form
|
|
|
- ##:
|
|
|
|
|
if form3.validate_on_submit():
|
|
if form3.validate_on_submit():
|
|
|
amount = form3.amount.data
|
|
amount = form3.amount.data
|
|
|
raw_amount = int(amount*100) # converting to cents int for Stripe
|
|
raw_amount = int(amount*100) # converting to cents int for Stripe
|
|
@@ -246,4 +245,7 @@ def charge():
|
|
|
|
|
|
|
|
@dashboards.route('/hashchain', methods=['GET'])
|
|
@dashboards.route('/hashchain', methods=['GET'])
|
|
|
def hashchain():
|
|
def hashchain():
|
|
|
- return render_template('hash.html', user = current_user)
|
|
|
|
|
|
|
+ hashchain = Hashchain.query.all()
|
|
|
|
|
+ txlist = TX.query.all()
|
|
|
|
|
+
|
|
|
|
|
+ return render_template('hash.html', user = current_user, hashchain = hashchain, txlist = txlist)
|