diff options
author | matthew <matthew> | 2007-05-14 18:20:41 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-05-14 18:20:41 +0000 |
commit | ae7483c988b69fec9250fedf2c9d0607478da527 (patch) | |
tree | fc1ec9c00836261bd09789949c124761e560e016 /web/rss.cgi | |
parent | 98c6d6ad3d6269e14b1f3497f4c1a8278b91605d (diff) |
RSS feed of problems per council.
Diffstat (limited to 'web/rss.cgi')
-rwxr-xr-x | web/rss.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/rss.cgi b/web/rss.cgi index a35f70f50..650aa7d28 100755 --- a/web/rss.cgi +++ b/web/rss.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: rss.cgi,v 1.4 2007-05-09 11:18:36 matthew Exp $ +# $Id: rss.cgi,v 1.5 2007-05-14 18:20:42 matthew Exp $ use strict; require 5.8.0; @@ -50,6 +50,10 @@ sub main { mySociety::Alert::generate_rss($type, $qs, $id); } elsif ($type eq 'new_problems') { mySociety::Alert::generate_rss($type, ''); + } elsif ($type eq 'council_problems') { + my $id = $q->param('id'); + my $qs = 'council='.$id; + mySociety::Alert::generate_rss($type, $qs, $id); } else { throw Error::Simple('Unknown alert type') unless $type; } |