From 931b2a59b639239daf61ae78a1404202b58fdf96 Mon Sep 17 00:00:00 2001 From: James Smith Date: Tue, 25 Jun 2024 13:09:23 +0100 Subject: [PATCH] remove deprecated size= in analyse job --- app/jobs/analysis/analyse_model_file_job.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/jobs/analysis/analyse_model_file_job.rb b/app/jobs/analysis/analyse_model_file_job.rb index 9cefc54a6..fc7966915 100644 --- a/app/jobs/analysis/analyse_model_file_job.rb +++ b/app/jobs/analysis/analyse_model_file_job.rb @@ -10,9 +10,8 @@ def perform(file_id) return if !file.exist? # If the file is modified, or we're lacking metadata status[:step] = "jobs.analysis.analyse_model_file.file_statistics" # i18n-tasks-use t('jobs.analysis.analyse_model_file.file_statistics') - if file.mtime > file.updated_at || file.digest.nil? || file.size.nil? + if file.mtime > file.updated_at || file.digest.nil? file.digest = file.calculate_digest - file.size = File.size(file.absolute_path) # If the digest has changed, queue up detailed geometric mesh analysis Analysis::GeometricAnalysisJob.perform_later(file_id) if file.digest_changed? # Store updated file metadata