Abhishek Thakur
commited on
Commit
·
f097cb0
1
Parent(s):
640dcf4
fix
Browse files- competitions/create.py +1 -0
competitions/create.py
CHANGED
|
@@ -98,6 +98,7 @@ def check_if_user_can_create_competition(user_token):
|
|
| 98 |
return gr.Dropdown()
|
| 99 |
|
| 100 |
orgs = user_info["orgs"]
|
|
|
|
| 101 |
valid_orgs = [org for org in orgs if org["canPay"] is True]
|
| 102 |
|
| 103 |
if len(valid_orgs) == 0:
|
|
|
|
| 98 |
return gr.Dropdown()
|
| 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 orgs if org["canPay"] is True]
|
| 103 |
|
| 104 |
if len(valid_orgs) == 0:
|