From ad9a04664d4420d8e511c8630447b125d738c1ca Mon Sep 17 00:00:00 2001 From: Ryan Orlando Date: Fri, 15 Nov 2024 13:45:22 -0500 Subject: [PATCH] temp play --- app/controllers/tufts/tdl_resources_controller.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/controllers/tufts/tdl_resources_controller.rb b/app/controllers/tufts/tdl_resources_controller.rb index 38a1fde4e..7582d6a07 100644 --- a/app/controllers/tufts/tdl_resources_controller.rb +++ b/app/controllers/tufts/tdl_resources_controller.rb @@ -27,17 +27,17 @@ def create else bad_ids << id end - if resource.index - successes += 1 - else - bad_ids << id - end - - # if resource.save_and_index + # if resource.index # successes += 1 # else # bad_ids << id # end + + if resource.save_and_index + successes += 1 + else + bad_ids << id + end end if successes.positive?