mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
Apply lrbalt's fix to address two small errors in the new stats page.
Fixes #556. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@590 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
839feddb63
commit
6e0e02714f
2 changed files with 3 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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' %>
|
||||
<%= 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' %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue