Skip to content

Commit

Permalink
remove deprecated size= in analyse job
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jun 25, 2024
1 parent d2907e8 commit 931b2a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/jobs/analysis/analyse_model_file_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 931b2a5

Please sign in to comment.