From 11c40ff3cdd968b5aec366fd32e5e2b3358e16f3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 15 Feb 2022 02:18:08 +0200 Subject: [PATCH] fsd --- files/routes/posts.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 7bcab451b..7ffaea2f4 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -36,6 +36,14 @@ CF_KEY = environ.get("CF_KEY", "").strip() CF_ZONE = environ.get("CF_ZONE", "").strip() CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/json"} +discounts = { + 69: 0.02, + 70: 0.04, + 71: 0.06, + 72: 0.08, + 73: 0.10, +} + def ghost_price(v): if v.patron == 1: discount = 0.90 elif v.patron == 2: discount = 0.85