jkorstad commited on
Commit
8bb8bca
·
verified ·
1 Parent(s): c2ac70f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -140,11 +140,14 @@ def search_spaces(search_text="", category="All Categories", offset=0, limit=100
140
  <p style='color: var(--color-text-primary);'>Showing {offset + 1}-{min(offset + limit, total_spaces)} of {total_spaces} Spaces</p>
141
  <p style='color: var(--color-text-primary);'>Total Likes: {total_likes:,}</p>
142
  </div>
 
 
143
  """
144
 
145
  # Only show the spaces from offset to offset + page_size
146
- visible_spaces = spaces.iloc[offset:offset + page_size]
147
- for _, row in visible_spaces.iterrows():
 
148
  html_content += f"""
149
  <div style='padding: 15px;
150
  border: 2px solid var(--color-border-primary);
 
140
  <p style='color: var(--color-text-primary);'>Showing {offset + 1}-{min(offset + limit, total_spaces)} of {total_spaces} Spaces</p>
141
  <p style='color: var(--color-text-primary);'>Total Likes: {total_likes:,}</p>
142
  </div>
143
+ <div style='max-height: 800px; overflow-y: auto;'>
144
+ <div style='display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 10px;'>
145
  """
146
 
147
  # Only show the spaces from offset to offset + page_size
148
+ # TEMP COMMENTING OUT, IF BROKEN UNCOMMENT* visible_spaces = spaces.iloc[offset:offset + page_size]
149
+ # Changed page_size to limit here
150
+ for _, row in spaces.iterrows():
151
  html_content += f"""
152
  <div style='padding: 15px;
153
  border: 2px solid var(--color-border-primary);