summaryrefslogtreecommitdiff
path: root/reach_reports/reach_application.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-08-15 09:15:56 +0200
committermguetlein <martin.guetlein@gmail.com>2011-08-15 09:15:56 +0200
commit2a945a2bcaeae5b6c4b9b8b5861da0c031a5106a (patch)
tree44daf9388b6dba7bef1f0af369f980357229ce65 /reach_reports/reach_application.rb
parent1f4ebe46790443225beff01b9e1918f5baec31f8 (diff)
add search with model in crossvalidation and qmrf report as discussed with nina in munich
Diffstat (limited to 'reach_reports/reach_application.rb')
-rwxr-xr-xreach_reports/reach_application.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/reach_reports/reach_application.rb b/reach_reports/reach_application.rb
index e35df7b..d77906d 100755
--- a/reach_reports/reach_application.rb
+++ b/reach_reports/reach_application.rb
@@ -48,6 +48,7 @@ end
get '/reach_report/:type' do
type = extract_type(params)
LOGGER.info "list all "+type+" reports"
+ uris = ReachReports.list_reports(type,params[:model] || params[:model_uri])
if request.env['HTTP_ACCEPT'] =~ /text\/html/
content_type "text/html"
related_links =
@@ -66,10 +67,10 @@ get '/reach_report/:type' do
when /(?i)QPRF/
#TODO
end
- OpenTox.text_to_html ReachReports.list_reports(type),@subjectid,related_links,description,post_command
+ OpenTox.text_to_html uris,@subjectid,related_links,description,post_command
else
content_type "text/uri-list"
- ReachReports.list_reports(type)
+ uris
end
end