Commit 27e639fc6eab35dd2e2a87d6dc4e6e4c0d037897
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,7 +6,11 @@ while (line = file.gets) | ||
6 | software_name = result[2].gsub("/n", "") | 6 | software_name = result[2].gsub("/n", "") |
7 | software = Community.find(:first, :conditions => ["lower(name) = ?", software_name.strip.downcase]) | 7 | software = Community.find(:first, :conditions => ["lower(name) = ?", software_name.strip.downcase]) |
8 | software.created_at = Time.zone.parse(result[1]) if software | 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 | end | 14 | end |
11 | file.close | 15 | file.close |
12 | 16 |