A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Element < ApplicationRecord
attr_accessor :checklist_id
@ -22,8 +24,8 @@ class Element < ApplicationRecord
return nil if possible_levels.empty?
puts possible_levels.inspect
puts min_failed
Rails.logger.debug possible_levels.inspect
Rails.logger.debug min_failed
possible_levels[possible_levels.find_index(min_failed) - 1]
end