Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,6 +91,8 @@ def get_schools():
|
|
91 |
# Parameters for the API request to select only the 'school' field
|
92 |
params = {
|
93 |
'fields[]': 'school', # Replace with the name of your field
|
|
|
|
|
94 |
}
|
95 |
|
96 |
try:
|
|
|
91 |
# Parameters for the API request to select only the 'school' field
|
92 |
params = {
|
93 |
'fields[]': 'school', # Replace with the name of your field
|
94 |
+
'sort[0][field]': 'school', # Sort by the 'school' field
|
95 |
+
'sort[0][direction]': 'asc', # Sort in ascending order
|
96 |
}
|
97 |
|
98 |
try:
|