Skip to content

Commit

Permalink
CV2-5392: export cluster description (#2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy authored Oct 7, 2024
1 parent 303cd92 commit 5c38959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/feed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def saved_search_was
end

def get_exported_data(filters)
data = [['Title', 'Number of media', 'Number of requests', 'Number of fact-checks']]
data = [['Title', 'Description', 'Number of media', 'Number of requests', 'Number of fact-checks']]
self.filtered_clusters(filters).find_each do |cluster|
data << [cluster.title, cluster.media_count, cluster.requests_count, cluster.fact_checks_count]
data << [cluster.title, cluster.center.description, cluster.media_count, cluster.requests_count, cluster.fact_checks_count]
end
data
end
Expand Down

0 comments on commit 5c38959

Please sign in to comment.