From 7088480a9aecc15bbc2a81891d7d2adf195d6f9b Mon Sep 17 00:00:00 2001 From: swaggboi Date: Mon, 22 Aug 2022 11:06:26 -0400 Subject: [PATCH] Whoopsie --- lib/PostText/Model/Thread.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index da8c24c..94bc03f 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -44,8 +44,8 @@ sub get_all_threads($self) { sub get_threads_by_page($self, $this_page = 1) { my $date_format = %$self{'date_format'}; - my $row_count = $self->{'threads_per_page'}; - my $offset = ($this_page - 1) * $row_count; + my $row_count = $self->{'threads_per_page'}; + my $offset = ($this_page - 1) * $row_count; $self->pg->db ->query(<<~'END_SQL', $date_format, $row_count, $offset)->hashes();