Shorten XML for parsed course

Instead of passing the complete XML response to the page, only the part
where the interesting fields for a course are stored should be passed as
a parameter. It also shortens the code in the html.erb file that is
necessary to pull out the wanted fields.
This commit is contained in:
2020-05-09 16:03:30 +02:00
parent ba6d9b24a4
commit 23613f0a14
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class TissCrawler
puts(url)
response = HTTParty.get(url)
response.parsed_response
response.parsed_response['tuvienna']['course']
end
def self.get_host