mirror of https://github.com/logseq/logseq
fix(query-dsl): journals pages not works
parent
45f600ecbc
commit
0c7b60c485
|
@ -659,9 +659,10 @@
|
|||
(cond
|
||||
(= name "query")
|
||||
[:div.dsl-query
|
||||
(custom-query (assoc config :dsl-query? true)
|
||||
{:title [:code.p-1 (str "Query: " (first arguments))]
|
||||
:query (first arguments)})]
|
||||
(let [query (string/join "," arguments)]
|
||||
(custom-query (assoc config :dsl-query? true)
|
||||
{:title [:code.p-1 (str "Query: " query)]
|
||||
:query query}))]
|
||||
|
||||
(= name "youtube")
|
||||
(let [url (first arguments)]
|
||||
|
|
|
@ -119,12 +119,12 @@
|
|||
t/days)]
|
||||
(tc/to-long (t/plus (t/today) (tf duration)))))))
|
||||
|
||||
(defn uniq-symbol
|
||||
[counter prefix]
|
||||
(let [result (symbol (str prefix (when-not (zero? @counter)
|
||||
@counter)))]
|
||||
(swap! counter inc)
|
||||
result))
|
||||
#_(defn uniq-symbol
|
||||
[counter prefix]
|
||||
(let [result (symbol (str prefix (when-not (zero? @counter)
|
||||
@counter)))]
|
||||
(swap! counter inc)
|
||||
result))
|
||||
|
||||
(defn build-query
|
||||
([repo e env]
|
||||
|
|
Loading…
Reference in New Issue