Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -563,7 +563,7 @@ def order_summary():
|
|
563 |
coupon_result = sf.query(f"""
|
564 |
SELECT Coupon_Code__c
|
565 |
FROM Referral_Coupon__c
|
566 |
-
WHERE
|
567 |
""")
|
568 |
|
569 |
discount_percentage = 10 # Apply 10% discount
|
|
|
563 |
coupon_result = sf.query(f"""
|
564 |
SELECT Coupon_Code__c
|
565 |
FROM Referral_Coupon__c
|
566 |
+
WHERE Referral_Email__c = '{email}' AND Coupon_Status__c = 'Active'
|
567 |
""")
|
568 |
|
569 |
discount_percentage = 10 # Apply 10% discount
|