Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -891,14 +891,14 @@ def load_balance_user_cached(student_id):
|
|
| 891 |
return select_space_with_enhanced_collision_avoidance_cached(space_activity, student_id)
|
| 892 |
|
| 893 |
def get_url_params(request: gr.Request):
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
|
| 903 |
def create_status_display_with_cache_info(space_activity):
|
| 904 |
"""创建包含缓存信息的状态显示"""
|
|
|
|
| 891 |
return select_space_with_enhanced_collision_avoidance_cached(space_activity, student_id)
|
| 892 |
|
| 893 |
def get_url_params(request: gr.Request):
|
| 894 |
+
"""Extract URL parameters from request"""
|
| 895 |
+
query_params = dict(request.query_params)
|
| 896 |
+
check_id = query_params.get('check', None)
|
| 897 |
+
if check_id:
|
| 898 |
+
return f"Load Distributor", check_id
|
| 899 |
+
else:
|
| 900 |
+
return "Load Distributor", None
|
| 901 |
+
|
| 902 |
|
| 903 |
def create_status_display_with_cache_info(space_activity):
|
| 904 |
"""创建包含缓存信息的状态显示"""
|