Commit 27e639fc6eab35dd2e2a87d6dc4e6e4c0d037897

Authored by Gabriela Navarro
1 parent d17eb519
Exists in script_to_update

Add way to know if a software didnt update

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
update.rb
... ... @@ -6,7 +6,11 @@ while (line = file.gets)
6 6 software_name = result[2].gsub("/n", "")
7 7 software = Community.find(:first, :conditions => ["lower(name) = ?", software_name.strip.downcase])
8 8 software.created_at = Time.zone.parse(result[1]) if software
9   - print "." if software && software.save
  9 + if software && software.save
  10 + print "."
  11 + else
  12 + print "F"
  13 + end
10 14 end
11 15 file.close
12 16  
... ...