Sfoglia il codice sorgente

bug fix: no longer showing how much they paid

control 3 anni fa
parent
commit
91cc3cd364
3 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 1 2
      app/dashboards.py
  2. BIN
      app/database.db
  3. 1 1
      app/templates/charge.html

+ 1 - 2
app/dashboards.py

@@ -224,7 +224,6 @@ def charge():
     # Amount in cents
     dbc_stripe = Stripe.query.filter_by(user_id = current_user.id).order_by(Stripe.id.desc()).first()
     raw_amount = dbc_stripe.raw_amount
-    amount = float(raw_amount/100)
 
     customer = stripe.stripe.Customer.create(
         email = 'customer@example.com',
@@ -241,7 +240,7 @@ def charge():
     # db dispatch for wallet top up
     dispatch.top_up(current_user.id, raw_amount)
 
-    return render_template('charge.html', amount = amount, user = current_user)
+    return render_template('charge.html', user = current_user)
 
 @dashboards.route('/hashchain', methods=['GET'])
 def hashchain():

BIN
app/database.db


+ 1 - 1
app/templates/charge.html

@@ -2,6 +2,6 @@
 
 {% block content %}
 
-<h2>Thanks, you topped-up $ {{ amount }}!</h2>
+<h2>Thanks, you'r ready to bid!</h2>
 
 {% endblock %}