Spaces:
Running
Running
Removed No Filter
Browse files
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
|
| 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
|
| 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 |
|