Skip to content

Commit

Permalink
Ugly hack to fix price comparision.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Aug 10, 2015
1 parent 6194a45 commit 14a702e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/swissmedic.rb
Expand Up @@ -5,7 +5,6 @@
require 'mechanize'
require 'ostruct'
require 'plugin/plugin'
require 'plugin/parslet_compositions'
require 'pp'
require 'util/persistence'
require 'util/today'
Expand Down Expand Up @@ -103,6 +102,7 @@ def set_target_keys(workbook)
end

def update(opts = {}, agent=Mechanize.new, target=get_latest_file(agent))
require 'plugin/parslet_compositions' # We delay the inclusion to avoid defining a module wide method substance in Parslet
init_stats
@update_comps = (opts and opts[:update_compositions])
msg = "#{__FILE__}:#{__LINE__} opts #{opts} @update_comps #{@update_comps} update target #{target.inspect}"
Expand Down

0 comments on commit 14a702e

Please sign in to comment.