Abhishek Thakur
commited on
Commit
·
6957076
1
Parent(s):
f097cb0
fix
Browse files- competitions/create.py +1 -1
competitions/create.py
CHANGED
|
@@ -99,7 +99,7 @@ def check_if_user_can_create_competition(user_token):
|
|
| 99 |
|
| 100 |
orgs = user_info["orgs"]
|
| 101 |
valid_orgs = [org for org in orgs if "canPay" in org]
|
| 102 |
-
valid_orgs = [org for org in
|
| 103 |
|
| 104 |
if len(valid_orgs) == 0:
|
| 105 |
return_msg = """You are not a member of any organization with a valid payment method.
|
|
|
|
| 99 |
|
| 100 |
orgs = user_info["orgs"]
|
| 101 |
valid_orgs = [org for org in orgs if "canPay" in org]
|
| 102 |
+
valid_orgs = [org for org in valid_orgs if org["canPay"] is True]
|
| 103 |
|
| 104 |
if len(valid_orgs) == 0:
|
| 105 |
return_msg = """You are not a member of any organization with a valid payment method.
|