master
Aevann1 2022-02-15 02:18:08 +02:00
parent 25f25da4f1
commit cb7cfcf73e
1 changed files with 8 additions and 0 deletions

View File

@ -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