Skip to content

Commit

Permalink
Adds decommissioned filtering to exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scherz committed Jun 17, 2024
1 parent ea071a7 commit 0ab7e6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exports/software_records.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
class SoftwareRecords < ApplicationRecord
def software_records
file = "#{Dir.pwd}/public/software_records.csv"
software_records = SoftwareRecords.all

# software_records = SoftwareRecords.all
software_records = SoftwareRecord.joins(:status).where.not(statuses: { status_type: 'Decommissioned' })

headers = [
'Software Record', 'Description', 'Status', 'Created on', 'Software Type',
'Authentication Type', 'Vendor Record', 'Departments', 'Date Implemented',
Expand Down

0 comments on commit 0ab7e6f

Please sign in to comment.