Switch to unified view
a/OSSEval/analysis/views.py | b/OSSEval/analysis/views.py | ||
---|---|---|---|
... |
... |
||
116 | trend_script = "<script type=\"text/javascript\" src=\"//www.google.com/trends/embed.js?hl=it&q=" |
116 | trend_script = "<script type=\"text/javascript\" src=\"//www.google.com/trends/embed.js?hl=it&q=" |
117 | comma = "" |
117 | comma = "" |
118 | for instance in analysis.instance_set.all(): |
118 | for instance in analysis.instance_set.all(): |
119 | trend_script += comma + instance.name |
119 | trend_script += comma + instance.name |
120 | comma = "," |
120 | comma = "," |
121 | # trend_script += "eucalyptus,+OpenNebula,+OpenStack,+Mozilla+Firefox" |
||
122 | trend_script += "&cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=330\"></script>" |
121 | trend_script += "&cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=500&h=330\"></script>" |
123 | return render(request, 'analysis/analysis_report.html', {'analysis': analysis, 'td_width': td_width, 'trend_script': trend_script, 'weight_scenario': weight_scenario}) |
122 | return render(request, 'analysis/analysis_report.html', {'analysis': analysis, 'td_width': td_width, 'trend_script': trend_script, 'weight_scenario': weight_scenario}) |
124 | 123 | ||
125 | def save_answer(request): |
124 | def save_answer(request): |
126 | try: |
125 | try: |