From c63367d24b55a191376fc39bb9aeb7da258bf6f1 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:45:23 +0100 Subject: [PATCH] Change handling of bulk uploads in process, check for negative --- app/models/bulk_upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bulk_upload.rb b/app/models/bulk_upload.rb index 86cdcd608..6baca2aff 100644 --- a/app/models/bulk_upload.rb +++ b/app/models/bulk_upload.rb @@ -12,7 +12,7 @@ class BulkUpload < ApplicationRecord after_initialize :generate_identifier, unless: :identifier - scope :visible, -> { where(processing: false) } + scope :visible, -> { where.not(processing: true) } scope :search_by_filename, ->(filename) { where("filename ILIKE ?", "%#{filename}%") } scope :search_by_user_name, ->(name) { where(user_id: User.where("name ILIKE ?", "%#{name}%").select(:id)) }