summaryrefslogtreecommitdiff
path: root/templates/_history_years.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-03 22:01:39 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-03 22:01:39 +0100
commit025b58126fb5cac92e0506e3364f342c8a9daf40 (patch)
tree6f19ecdc623f423fc2a65dcaacc49a06da841622 /templates/_history_years.html.ep
parenta5ab4fa6a8a41c2fd50cfa2ad8bee1c985ffd593 (diff)
_history_years: remove redundant SQL request
Diffstat (limited to 'templates/_history_years.html.ep')
-rw-r--r--templates/_history_years.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_history_years.html.ep b/templates/_history_years.html.ep
index 09ea5ce..686908f 100644
--- a/templates/_history_years.html.ep
+++ b/templates/_history_years.html.ep
@@ -3,7 +3,7 @@
% my @years = journeys->get_years(uid => current_user->{id});
% if (@years) {
<ul class="pagination">
- % for my $year (journeys->get_years(uid => current_user->{id})) {
+ % for my $year (@years) {
% my $link_to = $year->[0];
% my $text = $year->[1];
% my $class = $link_to eq $current ? 'active' : 'waves-effect';