Created
February 26, 2020 21:29
-
-
Save pkarman/b3d88583840c69a075c0f1cf5d97bbbd to your computer and use it in GitHub Desktop.
create csv of open tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vh = BusinessLine.find_by(url: 'vha') | |
rows = vha.tasks.open.includes(:appeal).order(id: :asc).map do | |
|t| [ | |
t.appeal.intake&.user&.css_id, | |
t.id, | |
"https://appeals.cf.ds.va.gov/decision_reviews/vha/tasks/#{t.id}", | |
t.appeal_id, | |
t.appeal_type, | |
t.appeal.veteran_file_number, | |
t.created_at | |
] | |
end | |
rows.each { |r| puts r.join(",") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment