Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
Remplace zipmap avec :keys dans la requête
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlynux committed Feb 18, 2022
1 parent da17eed commit 7bd5bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repl/introduce_datascript.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
(def nb-emprunts-par-delai
"Retourne le nombre d'emprunts par délai de retour"
'[:find ?delay (count ?code)
:keys nb-jours documents
:in $ ?calculate
:where
[_ :borrowings ?b]
Expand All @@ -66,6 +67,5 @@
java.time.temporal.ChronoUnit/DAYS
(java.time.LocalDate/now)
date)))
(sort-by first <)
(map #(zipmap [:nb-jours :documents] %))
(sort-by :nb-jours <)
(clojure.pprint/print-table))

0 comments on commit 7bd5bcd

Please sign in to comment.