Skip to content

Commit

Permalink
Corrected generating Präparateliste-latest.xlsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Feb 17, 2014
1 parent b169b2d commit 15f8557
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugin/swissmedic.rb
Expand Up @@ -268,7 +268,10 @@ def get_latest_file(agent, keyword='Packungen', extension = '.xlsx')
end
def initialize_export_registrations(agent)
latest_name = File.join @archive, "Präparateliste-latest.xlsx"
target = get_latest_file(agent, 'Präparateliste')
if target = get_latest_file(agent, 'Präparateliste')
debug_msg "#{__FILE__}: #{__LINE__} cp #{target} #{latest_name}"
FileUtils.cp target, latest_name
end
seq_indices = {}
[ :seqnr, :export_flag ].each do |key|
seq_indices.store key, PREPARATIONS_COLUMNS.index(key)
Expand Down

0 comments on commit 15f8557

Please sign in to comment.