Skip to content

Commit

Permalink
Ticket CV2-5067: Another minor change to data export
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Sep 3, 2024
1 parent b597088 commit 0bd7c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/team.rb
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def filtered_fact_checks(filters = {})
query = query.where('fact_checks.imported' => !!filters[:imported]) unless filters[:imported].nil?

# Filter by report status
query = query.where('fact_checks.report_status' => filters[:report_status].to_a.map(&:to_s)) unless filters[:report_status].blank?
query = query.where('fact_checks.report_status' => [filters[:report_status]].flatten.map(&:to_s)) unless filters[:report_status].blank?

# Filter by text
query = self.filter_by_keywords(query, filters) if filters[:text].to_s.size > 2
Expand Down

0 comments on commit 0bd7c1e

Please sign in to comment.