From cdbec0f9025507994559e5fb8aa607eae08006e1 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Fri, 20 Jan 2023 16:41:29 -0500 Subject: [PATCH] Confirm sweet query syntax works from commandline /cc @bendyorke `bb query recent-pages` --- script/nbb.edn | 4 ++-- script/package.json | 2 +- script/query.cljs | 2 +- script/yarn.lock | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/script/nbb.edn b/script/nbb.edn index d920bf34..45e8e9a7 100644 --- a/script/nbb.edn +++ b/script/nbb.edn @@ -1,8 +1,8 @@ {:deps {logseq/graph-parser {:git/url "https://github.com/logseq/logseq" - :git/sha "a0f6d89e78f416fc46f0ff4c295697005ca2f380" - :deps/root "deps/graph-parser"} + :git/sha "090d25b5e845e98ec2f003279f91ff34e4393cc6" + :deps/root "deps/graph-parser"} #_{:local/root "../../logseq/deps/graph-parser"} logseq/bb-tasks diff --git a/script/package.json b/script/package.json index 1729b0be..37469d3e 100644 --- a/script/package.json +++ b/script/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@logseq/nbb-logseq": "^1.1.157", + "@logseq/nbb-logseq": "^1.1.158", "mldoc": "^1.5.0" }, "license": "MIT" diff --git a/script/query.cljs b/script/query.cljs index 9dbf62b6..d2c3b7e0 100644 --- a/script/query.cljs +++ b/script/query.cljs @@ -85,7 +85,7 @@ [?b :block/updated-at ?timestamp] [(>= ?timestamp ?start)] [(<= ?timestamp ?end)]] - :inputs [:3d-before-ms :end-of-today-ms]} + :inputs [:-1w-ms :end-of-today-ms]} :tasks {:query '[:find (pull ?b [* {:block/page [:block/original-name]}]) :where diff --git a/script/yarn.lock b/script/yarn.lock index 026d45fb..a167a405 100644 --- a/script/yarn.lock +++ b/script/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@logseq/nbb-logseq@^1.1.157": - version "1.1.157" - resolved "https://registry.yarnpkg.com/@logseq/nbb-logseq/-/nbb-logseq-1.1.157.tgz#337be95156e5b22caf5533663ae8a5a79cc43fbd" - integrity sha512-cuutsKZDdg850qa6HquOTKKZ9WpWUjSozRdrfvI/2WIbAv2MVQKPQYtB03K55OW9i3D1K0jAwDM0xzGI2lWyFQ== +"@logseq/nbb-logseq@^1.1.158": + version "1.1.158" + resolved "https://registry.yarnpkg.com/@logseq/nbb-logseq/-/nbb-logseq-1.1.158.tgz#ebff10bdb0998b43e52e69ad487be04236b84569" + integrity sha512-NT3w5BmYBUeyOPNDc3SRNUrC4EXiY75KXiTdDS24kYaRX4UR63UZiAcCrG2GLB3jS48N2xv23dWJusHFer/+sQ== dependencies: import-meta-resolve "^2.1.0"