diff --git a/render.py b/render.py index 80517a4..eb8b122 100644 --- a/render.py +++ b/render.py @@ -13,8 +13,8 @@ images = { } prices = { - "pack1": 45, - "pack2": 45, + "pack1": 50, + "pack2": 50, } exchange = { @@ -35,7 +35,7 @@ def cart(cert): else: name = path image = "pins/pack1.jpg" - price = 45 + price = 50 hns = usdToHNS(price) @@ -69,7 +69,7 @@ def cart_total(cert): else: name = path image = "pins/pack1.jpg" - price = 45 + price = 50 hns = usdToHNS(price, True) hns = hns * int(quantity) @@ -129,7 +129,7 @@ def total_usd(cert,promo): if path in prices: total += prices[path] * int(item['quantity']) else: - total += 45 * int(item['quantity']) + total += 50 * int(item['quantity']) if promo: if promo["constant"]: diff --git a/server.py b/server.py index 8996ce4..ffce8be 100644 --- a/server.py +++ b/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/') 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/') def pins_order(path): diff --git a/templates/404.html b/templates/404.html index f17dddc..18ce509 100644 --- a/templates/404.html +++ b/templates/404.html @@ -8,15 +8,15 @@ - - + + diff --git a/templates/about.html b/templates/about.html index 85398ee..a138488 100644 --- a/templates/about.html +++ b/templates/about.html @@ -8,15 +8,15 @@ - - + + diff --git a/templates/blog.html b/templates/blog.html index 3a5a371..49461c2 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -8,15 +8,15 @@ - - + + diff --git a/templates/blog/happening.html b/templates/blog/happening.html index 38849e7..b77d6d6 100644 --- a/templates/blog/happening.html +++ b/templates/blog/happening.html @@ -8,12 +8,12 @@ - + diff --git a/templates/blog/pins.html b/templates/blog/pins.html index 49b3e20..7d157aa 100644 --- a/templates/blog/pins.html +++ b/templates/blog/pins.html @@ -9,8 +9,8 @@ - + diff --git a/templates/cart.html b/templates/cart.html index 1618ed8..0f36fa3 100644 --- a/templates/cart.html +++ b/templates/cart.html @@ -8,15 +8,15 @@ - - + + diff --git a/templates/contact.html b/templates/contact.html index 77beadc..5ee8bbb 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -8,15 +8,15 @@ - - + + diff --git a/templates/domains.html b/templates/domains.html index 1550949..cbac8a2 100644 --- a/templates/domains.html +++ b/templates/domains.html @@ -8,12 +8,12 @@ - + diff --git a/templates/faq.html b/templates/faq.html index 1fca0da..839272b 100644 --- a/templates/faq.html +++ b/templates/faq.html @@ -8,15 +8,15 @@ - - + + diff --git a/templates/index.html b/templates/index.html index e7df1c0..cfe116d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,15 +8,15 @@ - - + +