bug with resetting done Todos
This commit is contained in:
+2
-2
@@ -23,9 +23,9 @@ class Habit < ActiveRecord::Base
|
||||
end
|
||||
h.score += value
|
||||
end
|
||||
h.done = false
|
||||
h.done = false if (h.habit_type==2)
|
||||
h.save
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user