app/importers/tools/analyze_star_file_dates.rb
# Intended for use manually on the console
Intended for use manually on the console
Intended for use manually on the console
def console_analysis
    csv = CSV.read(path, headers: true)
    sorted_csv = csv.map { |row| star_date_to_ruby_date(row["AssessmentDate"]) }
    puts 'First date:'
    puts sorted_csv.first
    puts
    puts
    puts 'Last date:'
    puts sorted_csv.last
  end
def console_analysis csv = CSV . read ( path , headers : true ) sorted_csv = csv . map { | row | star_date_to_ruby_date ( row [ "AssessmentDate" ] ) } puts 'First date:' puts sorted_csv . first puts puts puts 'Last date:' puts sorted_csv . last end
Intended for use manually on the console
Intended for use manually on the console