<< | Index | >>
patinfo.yaml has line-break in preformatted text:
section.
2â4 Jahre (12â17 kg) 4â6 Tropfen <br />5â7 Jahre (18â25 kg) 7â9 Tropfen <br />8â11 Jahre (26â35 kg) 12â18 Tropfen
167 text: "Alter K\xC3\xB6rpergewicht Dosierung \n\ 168 ----------------------------------------------------\n\ 169 2\xE2\x80\x934 Jahre (12\xE2\x80\x9317 kg) 4\xE2\x80\x936 Tropfen \n\ 170 5\xE2\x80\x937 Jahre (18\xE2\x80\x9325 kg) 7\xE2\x80\x939 Tropfen \n\ 171 8\xE2\x80\x9311 Jahre (26\xE2\x80\x9335 kg) 12\xE2\x80\x9318 Tropfen \n"
Added regular expression for multi lines text section.
notification mail does not come from import_daily
job via cron.
in src/util/updater.rb
checked following functions of updater via cron.
works fine.
current dependencies import_daily
swissindex_pharmad
(via swissindexpharma plugin)
swissregd
(via swissreg plugin)
meddatad
(via medwin plugin)
exportd
(via xls_export plugin)
meddatad
(via bsv_xml plugin)
swissindex_pharmad
(via swissindexpharma plugin)
exportd
(via xls_export plugin)
exportd
(via csv_export plugin)
exportd
(via ouwerkerk plugin)
duplicate update methods (update_swissmedic_followers and update_bsv_followers)
recent (updated) log in production server
2012-05-05 09:01:21 CEST getin update_bsv 2012-05-05 09:01:29 CEST getin BsvXmlPlugin.update 2012-05-05 09:01:29 CEST target_url = http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip 2012-05-05 09:01:29 CEST save_dir = /var/www/oddb.org/data/xml 2012-05-05 09:01:29 CEST getin download_file 2012-05-05 09:01:31 CEST save_file = /var/www/oddb.org/data/xml/XMLPublications-2012.05.05.zip 2012-05-05 09:01:31 CEST latest_file = /var/www/oddb.org/data/xml/XMLPublications-latest.zip 2012-05-05 09:01:31 CEST File.exists?(/var/www/oddb.org/data/xml/XMLPublications-latest.zip) = true 2012-05-05 09:01:31 CEST FileUtils.compare_file(/tmp/foo20120505-14836-1rp7847, /var/www/oddb.org/data/xml/XMLPublications-latest.zip) = false 2012-05-05 09:01:31 CEST path = "/var/www/oddb.org/data/xml/XMLPublications-2012.05.05.zip" 2012-05-05 09:01:31 CEST entry.name = Gestrichene_Packungen_Emballages_radies.xls 2012-05-05 09:01:31 CEST entry.name = PR120501.txt 2012-05-05 09:01:31 CEST entry.name = GL_Diff_SB.xml 2012-05-05 09:01:31 CEST entry.name = ItCodes.xml 2012-05-05 09:03:37 CEST entry.name = Preparations.xml
Last night, I ran import_daily via cron at 03:00.
It still running (17:00).
checked get_latest_file
in src/plugin/swissmedic.rb
def get_latest_file(agent, keyword='Packungen') page = agent.get @index_url links = page.links.select do |link| ptrn = keyword.gsub /[^A-Za-z]/u, '.' /#{ptrn}/iu.match link.attributes['title'] end link = links.first or raise "could not identify url to #{keyword}.xls" file = agent.get(link.href) download = file.body ... end
to check result of import_dail job via cron.
in result list.
At Result list, use AtcFacade
class.
Added drugbank link to result list