Skip to content

Commit

Permalink
bump iiif_print again
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Nov 7, 2024
1 parent 7cddd81 commit 8eeb70b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ GIT

GIT
remote: https://github.com/scientist-softserv/iiif_print.git
revision: a1905e2f5ce9598c4a743eedeaa7a7ee54cb4ce4
revision: 834bc47aabd21dd18717c02d4f24e27fb1aee55b
branch: main
specs:
iiif_print (3.0.1)
Expand Down
6 changes: 6 additions & 0 deletions lib/reprocessor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class Reprocessor # rubocop:disable Metrics/ClassLength
SETTINGS = %w[header_lines batch_size current_location limit incremental_save log_dir].freeze

attr_accessor(*SETTINGS)
attr_accessor :instance.error_log, :id_line_size, :id_log, :id_path

def initialize
@header_lines = 1
@batch_size = 1000
Expand Down Expand Up @@ -65,6 +67,10 @@ def self.load(log_dir = Rails.root.join('tmp', 'imports').to_s)
SETTINGS.each do |setting|
instance.send("#{setting}=", state[setting])
end
instance.error_log = nil
instance.id_line_size = nil
instance.id_log = nil
instance.id_path = nil
rescue Errno::ENOENT
puts 'no save file to load' # rubocop:disable Rails/Output
instance.log_dir = log_dir
Expand Down

0 comments on commit 8eeb70b

Please sign in to comment.