linxinhua commited on
Commit
ca72c84
·
verified ·
1 Parent(s): 4d5ff77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -823,7 +823,7 @@ def redirect_to_space(redirect_url, selected_space, status_display):
823
  else:
824
  idle_info = f"{selected_space['idle_minutes']:.1f} minutes"
825
 
826
- # Modified HTML structure - Access section first, then analysis
827
  redirect_html = f"""
828
  <div style="max-width: 900px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
829
  <div style="text-align: center; margin-bottom: 30px; padding: 25px; background: linear-gradient(135deg, #28a745, #20c997); color: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
@@ -856,16 +856,6 @@ def redirect_to_space(redirect_url, selected_space, status_display):
856
  </p>
857
  </div>
858
 
859
- <div style="background: #f8f9fa; padding: 25px; border-radius: 12px; margin-bottom: 25px; border-left: 4px solid #28a745;">
860
- <h3 style="margin-top: 0; color: #333;">📊 Space Selection Analysis</h3>
861
- <div style="background: white; padding: 20px; border-radius: 8px; font-size: 14px; line-height: 1.8; border: 1px solid #e9ecef;">
862
- {status_display}
863
- </div>
864
- <p style="margin-bottom: 0; color: #666; font-size: 14px; margin-top: 15px;">
865
- <strong>Enhanced Selection Algorithm:</strong> Spaces idle for ≥{MIN_IDLE_MINUTES} minutes, not allocated in memory, and not locally allocated are eligible. The system uses pure memory storage for real-time collision avoidance.
866
- </p>
867
- </div>
868
-
869
  <div style="text-align: center; padding: 20px; background: #f1f3f4; border-radius: 8px; margin-top: 20px;">
870
  <p style="margin: 0; color: #5f6368; font-size: 14px;">
871
  🔄 Need a different assistant? <a href="javascript:location.reload()" style="color: #1976d2; text-decoration: none;">Refresh this page</a> to get reassigned.
 
823
  else:
824
  idle_info = f"{selected_space['idle_minutes']:.1f} minutes"
825
 
826
+ # Modified HTML structure - Only Access section, removed analysis section
827
  redirect_html = f"""
828
  <div style="max-width: 900px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
829
  <div style="text-align: center; margin-bottom: 30px; padding: 25px; background: linear-gradient(135deg, #28a745, #20c997); color: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
 
856
  </p>
857
  </div>
858
 
 
 
 
 
 
 
 
 
 
 
859
  <div style="text-align: center; padding: 20px; background: #f1f3f4; border-radius: 8px; margin-top: 20px;">
860
  <p style="margin: 0; color: #5f6368; font-size: 14px;">
861
  🔄 Need a different assistant? <a href="javascript:location.reload()" style="color: #1976d2; text-decoration: none;">Refresh this page</a> to get reassigned.