Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dpetran committed Feb 3, 2023
1 parent fb052b0 commit 6fb8d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/fluree/db/index.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
(< (flake/t flake) t))

(defn before-t?
"Returns `true` if `flake` has a transaction value after the provided `t`"
"Returns `true` if `flake` has a transaction value before the provided `t`"
[t flake]
(> (flake/t flake) t))

Expand Down Expand Up @@ -292,6 +292,7 @@
(flake/conj-all (novelty-subrange leaf to-t novelty)))
;; flakes that happen after to-t
subsequent (filter-after to-t latest)
;; flakes that happen before from-t
previous (filter (partial before-t? from-t) latest)
out-of-range (concat subsequent previous)]
(flake/disj-all latest out-of-range))))
Expand Down
3 changes: 0 additions & 3 deletions src/fluree/db/query/range.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,6 @@
(defn time-range
"Range query across an index.
Uses a DB, but in the future support supplying a connection and db name, as we
don't need a 't'
Ranges take the natural numeric sort orders, but all results will return in
reverse order (newest subjects and predicates first).
Expand Down

0 comments on commit 6fb8d24

Please sign in to comment.