Commit 9225c60c authored by hugo's avatar hugo
Browse files

Re-add update of counter status

parent 725d0f40
......@@ -61,6 +61,14 @@ class Counter < ActiveRecord::Base
errors.add(:database, "Couldnt't register row for #{name}: #{e.message}")
end
end
begin
record = Status.where(counter_id: id, date: date).first_or_create
record.update_attributes!(:is_ok => errors.blank?)
rescue => e
errors.add(:dbstatus, "Couldn't register status for #{counter.name}: #{e.message}")
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment