Fix: Von-Gründer-eingeladen → 100% dauerhaft (statt 50%); SW by-v972
This commit is contained in:
parent
810c78ae8b
commit
aea5f04bc1
5 changed files with 5 additions and 5 deletions
|
|
@ -1303,7 +1303,7 @@ def _get_discount_info(conn, user_id: int) -> dict:
|
|||
"SELECT is_founder, is_founder_pending FROM users WHERE id=?", (referred_by,)
|
||||
).fetchone()
|
||||
if referrer and (referrer["is_founder"] or referrer["is_founder_pending"]):
|
||||
return {"discount_pct": 50, "reason": "referred_by_founder", "referral_count": row["referral_count"]}
|
||||
return {"discount_pct": 100, "reason": "referred_by_founder", "referral_count": row["referral_count"]}
|
||||
|
||||
count = row["referral_count"]
|
||||
for threshold, pct in [(50, 50), (20, 30), (10, 20)]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue