-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified controllers and models to enable downloading annotations.
modified: app/controllers/application_controller.rb modified: app/controllers/audio_events_controller.rb modified: app/models/audio_event.rb modified: app/models/audio_event_tag.rb modified: app/models/audio_recording.rb modified: app/models/tag.rb new file: app/views/audio_events/download.csv.erb modified: config/routes.rb -- added route for downloading audio tags modified: db/development_seeds.rb -- tags are now properly connected to audio events
- Loading branch information
Showing
7 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"Tag", "Start Date", "Start Time", "End Date", "End Time", "Max Frequency (hz)", "Min Frequency (hz)", "Projects", "Sites", "Sensor Name", "Score", "Tagged by", "Player link" | ||
<%= CSV.generate do |csv| | ||
@annotations.each do |annotation| | ||
csv << [ annotation[:audio_recording_id] ] | ||
end | ||
end %> |