dhammo2 commited on
Commit
b19c305
·
verified ·
1 Parent(s): c8069ff

Removed No Filter

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def get_meeting_types():
25
  meeting_types = [row[0] for row in cur.fetchall()]
26
  cur.close()
27
  conn.close()
28
- return ["No Filter"] + meeting_types
29
 
30
  # Format seconds as HH:MM:SS
31
  def format_seconds(seconds):
@@ -81,7 +81,7 @@ def search_transcripts(query, meeting_type, start_date, end_date):
81
  """
82
  params = [f"%{query}%"]
83
 
84
- if meeting_type and "No Filter" not in meeting_type:
85
  sql += " AND w.meeting_type = ANY(%s)"
86
  params.append(meeting_type)
87
 
 
25
  meeting_types = [row[0] for row in cur.fetchall()]
26
  cur.close()
27
  conn.close()
28
+ return meeting_types # no "No Filter"
29
 
30
  # Format seconds as HH:MM:SS
31
  def format_seconds(seconds):
 
81
  """
82
  params = [f"%{query}%"]
83
 
84
+ if meeting_type: # only apply if user actually picked something
85
  sql += " AND w.meeting_type = ANY(%s)"
86
  params.append(meeting_type)
87