Allow to query task details
authorJoey Schulze <joey@infodrom.org>
Tue, 5 Jan 2021 10:33:10 +0000 (11:33 +0100)
committerJoey Schulze <joey@infodrom.org>
Tue, 5 Jan 2021 10:33:10 +0000 (11:33 +0100)
src/InfoCon/stempel/stempel

index b29fdc3..bbfb922 100755 (executable)
@@ -266,6 +266,8 @@ sub list
     } elsif ($month =~ /^(\d\d?)$/) {
        my $pivot = $d_year+1900 . '-' . $1 . '-01';
        $query .= "AND start >= '$pivot' AND start <= '$pivot'::date + interval '1 month' ";
+    } elsif (length $month && $month !~ /^all$/) {
+       $query .= "AND task LIKE '%${month}%' ";
     } elsif ($month !~ /^all$/) {
        my $pivot = sprintf('%04d-%02d-01', $d_year+1900, $d_mon+1);
        $query .= "AND start >= '$pivot' AND start <= '$pivot'::date + interval '1 month' ";