projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5678c1a
)
Allow to query task details
author
Joey Schulze
<joey@infodrom.org>
Tue, 5 Jan 2021 10:33:10 +0000
(11:33 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Tue, 5 Jan 2021 10:33:10 +0000
(11:33 +0100)
src/InfoCon/stempel/stempel
patch
|
blob
|
history
diff --git
a/src/InfoCon/stempel/stempel
b/src/InfoCon/stempel/stempel
index
b29fdc3
..
bbfb922
100755
(executable)
--- a/
src/InfoCon/stempel/stempel
+++ b/
src/InfoCon/stempel/stempel
@@
-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' ";