Skip to content

Commit

Permalink
First of the month (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed Dec 13, 2019
1 parent 5d99e09 commit 2fe9450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/programs/assemble_marc_files/assemble_marc_files.rb
Expand Up @@ -87,7 +87,7 @@ def recreate_collection_month_marc_file(collection) # rubocop:disable Metrics/Me

month = Date.today.month
filename = selection.name + format("-%02d", month)
umpebc_marcs = UmpebcMarc.where('year = ? AND updated_at >= ?', selection.year, DateTime.new(selection.year, month, 6))
umpebc_marcs = UmpebcMarc.where('year = ? AND updated_at >= ?', selection.year, DateTime.new(selection.year, month, 1))
break if umpebc_marcs.blank?

writer = MARC::Writer.new(filename + '.mrc')
Expand Down

0 comments on commit 2fe9450

Please sign in to comment.