bradley6597 commited on
Commit
542ca55
1 Parent(s): 82b8f4f

Fix 'All' Error

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -134,14 +134,12 @@ def search_index(search_text, sd, ks, sort_by, max_results, user_num, search_tit
134
  output_df2 = output_df2.sort_values(by = ['title'], ascending = True)
135
 
136
  total_returned = 'No. of Results to Return (Total: ' + str(output_df2.shape[0]) + ')'
137
-
138
- if output_df2.shape[0] > int(max_results):
139
- load_more_visible = True
140
 
141
  if max_results != 'All':
 
 
142
  output_df2 = output_df2.head(int(max_results))
143
- else:
144
- max_results = output_df2.shape[0]
145
  output_df2 = output_df2[['url']].reset_index(drop = True)
146
 
147
  max_cols = 5
 
134
  output_df2 = output_df2.sort_values(by = ['title'], ascending = True)
135
 
136
  total_returned = 'No. of Results to Return (Total: ' + str(output_df2.shape[0]) + ')'
137
+
 
 
138
 
139
  if max_results != 'All':
140
+ if output_df2.shape[0] > int(max_results):
141
+ load_more_visible = True
142
  output_df2 = output_df2.head(int(max_results))
 
 
143
  output_df2 = output_df2[['url']].reset_index(drop = True)
144
 
145
  max_cols = 5