Skip to content

Commit

Permalink
Adapt to new location of epha interaction csv-file
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Apr 28, 2014
1 parent 2c39b4d commit 7873ba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/plugin/epha_interactions.rb
Expand Up @@ -12,7 +12,7 @@
module ODDB
class EphaInteractionPlugin < Plugin
CSV_FILE = File.expand_path('../../data/csv/interactions_de_utf8.csv', File.dirname(__FILE__))
CSV_ORIGIN_URL = 'http://community.epha.ch/interactions_de_utf8.csv'
CSV_ORIGIN_URL = 'https://download.epha.ch/cleaned/matrix.csv'

def initialize(app)
super
Expand Down Expand Up @@ -63,7 +63,7 @@ def update(csv_file_path = nil)
@app.epha_interactions.odba_store unless defined?(MiniTest)
$stdout.puts "#{Time.now}: Calling @app.epha_interactions.each"; $stdout.flush
@app.epha_interactions.each{|item| item.odba_store}
FileUtils.mv(csv_file_path, csv_file_path.sub(/\.csv$/, '-latest.csv'), :verbose => true)
FileUtils.mv(csv_file_path, csv_file_path.sub(/\.csv$/, '-latest.csv'), :verbose => true) unless defined?(MiniTest)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/data/csv/epha_interactions_de_utf8-latest-latest.csv
@@ -1,2 +1,2 @@
ATC1;Name1;ATC2;Name2;Info;Mechanismus;Effekt;Massnahmen;Grad
"N06AB06";"Sertralin";"M03BX02";"Tizanidin";"Keine Interaktion";"Tizanidin wird über CYP1A2 metabolisiert. Sertralin beeinflusst CYP1A2 jedoch nicht.";"Keine Interaktion.";"Die Kombination aus Sertralin und Tizanidin hat kein bekanntes Interaktionspotential.";"A"
N06AB06;Sertralin;M03BX02;Tizanidin;Keine Interaktion;Tizanidin wird über CYP1A2 metabolisiert. Sertralin beeinflusst CYP1A2 jedoch nicht.;Keine Interaktion.;Die Kombination aus Sertralin und Tizanidin hat kein bekanntes Interaktionspotential.;A

0 comments on commit 7873ba1

Please sign in to comment.