Skip to content

Commit

Permalink
Missed a reason to set the changed flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Cross committed Jan 16, 2015
1 parent 377e9e7 commit 988e06b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/get_cands
Expand Up @@ -112,6 +112,7 @@ foreach my $con ($cons_rs->all) {
$curr_cand->party->name,
' / ', $curr_cand->twitter;
$curr_cand->delete;
$changed = 1;
}

if ($changed) {
Expand Down
3 changes: 3 additions & 0 deletions ttlib/party.tt
@@ -1,3 +1,4 @@
[% USE Dumper -%]
[% WRAPPER page.tt -%]
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
Expand All @@ -9,8 +10,10 @@
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="col-md-4">
<!-- [% p.candidates.list %] -->
<ul>
[% FOREACH cand IN p.candidates.sort('name') -%]
<!-- [% Dumper.dump(cand) %] -->
<li>[% cand.name %] ([% cand.constituency.name %])[% IF cand.twitter %]<br><a href="https://twitter.com/[% cand.twitter %]">@[% cand.twitter %]</a>[% END %]</li>
[% END -%]
</ul>
Expand Down

0 comments on commit 988e06b

Please sign in to comment.