diff options
author | francis <francis> | 2008-05-09 01:00:42 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-09 01:00:42 +0000 |
commit | 9f5a6371ddb618eba3586bb228ca2db1633034b3 (patch) | |
tree | 683969268860a3b79bfe179c2ebdf6509ff0f819 | |
parent | 13ed15980a22f35bbb998bcd8e02fcacabb77995 (diff) |
Link to stats graph.
-rw-r--r-- | app/models/info_request.rb | 4 | ||||
-rw-r--r-- | app/views/admin/stats.rhtml | 2 | ||||
-rw-r--r-- | config/crontab.ugly | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index e1c75dd2a..af5a3b27b 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -21,7 +21,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.104 2008-05-08 22:56:27 francis Exp $ +# $Id: info_request.rb,v 1.105 2008-05-09 01:00:42 francis Exp $ require 'digest/sha1' require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian') @@ -109,7 +109,7 @@ public # Remove spaces from ends (for when used in emails etc.) def title title = read_attribute(:title) - kitle.strip + title.strip end # Email which public body should use to respond to request. This is in diff --git a/app/views/admin/stats.rhtml b/app/views/admin/stats.rhtml index 9bca62079..24b613df4 100644 --- a/app/views/admin/stats.rhtml +++ b/app/views/admin/stats.rhtml @@ -4,6 +4,8 @@ <h2>State of requests</h2> +<img src="<%= main_url("/foi-live-creation.png")%>"> + <table> <% for state, count in @request_by_state %> <tr> <td><%=state %></td><td><%= count %></td> </tr> diff --git a/config/crontab.ugly b/config/crontab.ugly index 71563688e..0f2054fbd 100644 --- a/config/crontab.ugly +++ b/config/crontab.ugly @@ -4,7 +4,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org. WWW: http://www.mysociety.org/ # -# $Id: crontab.ugly,v 1.10 2008-04-24 23:54:56 francis Exp $ +# $Id: crontab.ugly,v 1.11 2008-05-09 01:00:42 francis Exp $ PATH=/usr/local/bin:/usr/bin:/bin MAILTO=team@whatdotheyknow.com @@ -20,3 +20,6 @@ MAILTO=team@whatdotheyknow.com 23 4 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/delete-old-sessions.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/delete-old-sessions || echo "stalled?" 0 8 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/alert-new-response-reminders.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/alert-new-response-reminders || echo "stalled?" +# Once a day on all servers +43 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/request-creation-graph + |