feat: Update price of pins
All checks were successful
Build Docker / Build Image (push) Successful in 1m23s

This commit is contained in:
2025-02-08 11:04:25 +11:00
parent b6f27cc027
commit 942e0f182e
21 changed files with 51 additions and 45 deletions

View File

@@ -73,16 +73,19 @@ def pins():
hns_45 = 45 / exchange['rate']
hns_30 = 30 / exchange['rate']
hns_50 = 50 / exchange['rate']
# Round to the nearest 5 HNS and add commas
hns_45 = int(hns_45 / 5) * 5
hns_30 = int(hns_30 / 5) * 5
hns_50 = int(hns_50 / 5) * 5
hns_45 = "{:,}".format(hns_45)
hns_30 = "{:,}".format(hns_30)
hns_50 = "{:,}".format(hns_50)
return render_template('pins.html', year=year, hns_45=hns_45, hns_30=hns_30)
return render_template('pins.html', year=year, hns_45=hns_45, hns_30=hns_30,hns_50=hns_50)
@app.route('/pins/<path:path>')
def pins_redirect(path):
@@ -100,14 +103,17 @@ def pins_redirect(path):
hns_45 = 45 / exchange['rate']
hns_30 = 30 / exchange['rate']
hns_50 = 50 / exchange['rate']
# Round to the nearest 5 HNS and add commas
hns_45 = int(hns_45 / 5) * 5
hns_30 = int(hns_30 / 5) * 5
hns_50 = int(hns_50 / 5) * 5
hns_45 = "{:,}".format(hns_45)
hns_30 = "{:,}".format(hns_30)
return render_template('pins/'+path + ".html", year=year, hns_45=hns_45, hns_30=hns_30)
hns_50 = "{:,}".format(hns_50)
return render_template('pins/'+path + ".html", year=year, hns_45=hns_45, hns_30=hns_30,hns_50=hns_50)
@app.route('/pins/order/<path:path>')
def pins_order(path):