about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-30 23:28:59 -0500
committerJune McEnroe <june@causal.agency>2019-12-30 23:28:59 -0500
commiteef9c0faa89365a9c4a94c13de2fc81cadd24396 (patch)
treea55e5d9c2c674dcaf991cb47b16dc0821cf329fd
parentAdd initial rough version of scoop (diff)
downloadlitterbox-eef9c0faa89365a9c4a94c13de2fc81cadd24396.tar.gz
litterbox-eef9c0faa89365a9c4a94c13de2fc81cadd24396.zip
Normalize date input
Mostly this just allows the use of 'now'.
Diffstat (limited to '')
-rw-r--r--scoop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scoop.c b/scoop.c
index 48f291c..f735fe2 100644
--- a/scoop.c
+++ b/scoop.c
@@ -45,7 +45,7 @@ static const char *Inner = SQL(
 	WHERE coalesce(contexts.network = :network, true)
 		AND coalesce(contexts.name = :context, true)
 		AND coalesce(contexts.query = :query, true)
-		AND coalesce(date(events.time) = :date, true)
+		AND coalesce(date(events.time) = date(:date), true)
 		AND coalesce(events.type = :type, true)
 		AND coalesce(names.nick = :nick, true)
 		AND coalesce(names.user = :user, true)
022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio. 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe