Skip to content

Commit

Permalink
[WIP] Ticket CV2-5067: Removing model attribute from file name
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Aug 18, 2024
1 parent f3e8116 commit e54e250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/check_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def self.export_to_csv(query, team_id)
search = CheckSearch.new(query, nil, team_id)

# Prepare the export
csv_file_path = File.join(Rails.root, 'tmp', "items-export-#{team.slug}-#{Time.now.to_i}-#{Digest::MD5.hexdigest(query)}.csv")
csv_file_path = File.join(Rails.root, 'tmp', "items-export-#{Time.now.to_i}-#{Digest::MD5.hexdigest(query)}.csv")
csv = File.open(csv_file_path, 'w+')
header = ['Claim', 'Item page URL', 'Status', 'Created by', 'Submitted at', 'Published at', 'Number of media', 'Tags']
fields = team.team_tasks.sort
Expand Down

0 comments on commit e54e250

Please sign in to comment.