Skip to content

Commit

Permalink
remove unapproved papers from search results
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivharlalka authored Sep 24, 2024
1 parent 209ce68 commit 0053555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/query/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ with fuzzy as (
similarity(course_code || ' ' || course_name, @query_text) as sim_score,
row_number() over (order by similarity(course_code || ' ' || course_name, @query_text) desc) as rank_ix
from iqps
where (course_code || ' ' || course_name) %>> @query_text
where (course_code || ' ' || course_name) %>> @query_text AND approve_status = true
order by rank_ix
limit 30
),
Expand Down

0 comments on commit 0053555

Please sign in to comment.