feat: Update price of pins
All checks were successful
Build Docker / Build Image (push) Successful in 1m23s
All checks were successful
Build Docker / Build Image (push) Successful in 1m23s
This commit is contained in:
10
server.py
10
server.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user