Skip to content

Commit

Permalink
Updated comarketing URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jan 15, 2014
1 parent 69c0c28 commit 7f26654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin/comarketing.rb
Expand Up @@ -14,7 +14,7 @@

module ODDB
class CoMarketingPlugin < Plugin
SOURCE_URI = 'http://www.swissmedic.ch/daten/00080/00260/index.html?lang=de'
SOURCE_URI = 'https://www.swissmedic.ch/arzneimittel/00156/00221/00222/00239/index.html?lang=de'
def find(iksnr)
@app.registration(iksnr)
end
Expand Down Expand Up @@ -104,7 +104,7 @@ def update(agent=Mechanize.new)
link = page.links.find do |node|
/Excel-Version/iu.match node.attributes['title']
end or raise "unable to identify url for Co-Marketing-data"
url = "http://www.swissmedic.ch/#{link.attributes['href']}"
url = "https://www.swissmedic.ch/#{link.attributes['href']}"
@pairs = get_pairs(url)
@pairs.each { |pair|
update_pair(*pair)
Expand Down

0 comments on commit 7f26654

Please sign in to comment.