diff --git a/tracks/app/controllers/stats_controller.rb b/tracks/app/controllers/stats_controller.rb index ce68554c..49a41dd2 100755 --- a/tracks/app/controllers/stats_controller.rb +++ b/tracks/app/controllers/stats_controller.rb @@ -477,7 +477,8 @@ class StatsController < ApplicationController " datediff(now(), t.completed_at) < 30) "+ "AND p.user_id="+@user.id.to_s+" "+ "GROUP BY p.id "+ - "ORDER BY count DESC" + "ORDER BY count DESC" + + "LIMIT 10" ) # get the first 10 projects and their running time (creation date versus now()) diff --git a/tracks/app/views/stats/_chart.rhtml b/tracks/app/views/stats/_chart.rhtml index 4f215656..395a55c2 100755 --- a/tracks/app/views/stats/_chart.rhtml +++ b/tracks/app/views/stats/_chart.rhtml @@ -1 +1 @@ -<%= flashobject_tag "open-flash-chart.swf", :query_params => { 'width' => width, 'height' => height, 'data' => data}, :size => "#{width}x#{height}", :parameters => { 'allowScriptAccess' => 'sameDomain'}, :class_name => 'open-flash-chart' %> \ No newline at end of file +<%= flashobject_tag "open-flash-chart.swf", :query_params => { 'width' => width, 'height' => height, 'data' => data}, :size => "#{width}x#{height}", :parameters => { 'allowScriptAccess' => 'sameDomain'}, :class_name => 'open-flash-chart', :flash_id => 'chart' %> \ No newline at end of file