| Fix export_audio - warvox - VoIP based wardialing tool, forked from rapid7/warv… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 04945e185bc5b0b9fc877ca31ecaba9f8b0f681a | |
| parent e82fea798bf6469bced559a5ea661e2f49c6bfb0 | |
| Author: HD Moore <[email protected]> | |
| Date: Tue, 10 Feb 2015 16:22:14 -0600 | |
| Fix export_audio | |
| Diffstat: | |
| M bin/export_audio.rb | 6 +++--- | |
| 1 file changed, 3 insertions(+), 3 deletions(-) | |
| --- | |
| diff --git a/bin/export_audio.rb b/bin/export_audio.rb | |
| @@ -37,10 +37,10 @@ end | |
| require 'config/boot' | |
| require 'config/environment' | |
| -if(not project_id) | |
| +if project_id.to_i == 0 | |
| $stderr.puts "Listing all projects" | |
| $stderr.puts "====================" | |
| - Project.find(:all).each do |j| | |
| + Project.all.each do |j| | |
| puts "#{j.id}\t#{j.name}\t#{j.created_at}" | |
| end | |
| exit | |
| @@ -54,7 +54,7 @@ begin | |
| cond[:line_type] = line_type.downcase | |
| end | |
| - Call.where(cond).find(:order => :number) do |r| | |
| + Call.where(cond).order(number: :asc).each do |r| | |
| m = r.media | |
| if m and m.audio | |