diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-12-09 14:40:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-12-09 19:14:00 +0000 |
commit | 95b1ca5771d40921ea88ae007dd59d5a70f2802c (patch) | |
tree | 5eb68fdbe732260b2d6a25196fce2687d3d41db9 /perllib/FixMyStreet/Cobrand/FixMyStreet.pm | |
parent | bd3fbd345cebb859a5d97ce6d5a11b61c08ad3da (diff) |
[UK] Add SQL problem restrictions for RSS feeds.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 03bc0c82b..a6161b570 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -41,6 +41,10 @@ sub problems_restriction { my $table = ref $rs eq 'FixMyStreet::DB::ResultSet::Nearby' ? 'problem' : 'me'; return $rs->search({ "$table.cobrand" => { '!=' => 'tfl' } }); } +sub problems_sql_restriction { + my $self = shift; + return "AND cobrand != 'tfl'"; +} sub relative_url_for_report { my ( $self, $report ) = @_; |