Abhishek Thakur
commited on
Commit
·
4629307
1
Parent(s):
c50a91b
update competition creator
Browse files- competitions/create.py +1 -3
competitions/create.py
CHANGED
|
@@ -97,9 +97,7 @@ def check_if_user_can_create_competition(user_token):
|
|
| 97 |
if return_msg is not None:
|
| 98 |
return gr.Dropdown()
|
| 99 |
|
| 100 |
-
|
| 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.
|
|
|
|
| 97 |
if return_msg is not None:
|
| 98 |
return gr.Dropdown()
|
| 99 |
|
| 100 |
+
valid_orgs = user_info["orgs"]
|
|
|
|
|
|
|
| 101 |
|
| 102 |
if len(valid_orgs) == 0:
|
| 103 |
return_msg = """You are not a member of any organization with a valid payment method.
|