fix until filters

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-12 20:29:41 -07:00
parent f0d56da4f5
commit 483e8e85d6
3 changed files with 7 additions and 3 deletions

4
Cargo.lock generated
View File

@@ -2556,9 +2556,9 @@ dependencies = [
[[package]]
name = "nostrdb"
version = "0.3.0"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59da521fefb12cd1f1f0f26d15a2ab9f38860696f6c0bb674b9830a5bbc75990"
checksum = "a4d574f011d7bca4fcb7167da332da7a73d5612b24a187df08f5a000de08d3f4"
dependencies = [
"bindgen",
"cc",

View File

@@ -32,7 +32,7 @@ env_logger = "0.10.0"
puffin_egui = { version = "0.27.0", optional = true }
puffin = { version = "0.19.0", optional = true }
#nostrdb = { git = "https://github.com/damus-io/nostrdb-rs", rev = "2675e7244554e40c9ee10d82b42bc647fef4c17d" }
nostrdb = "0.3.0"
nostrdb = "0.3.2"
hex = "0.4.3"
base32 = "0.4.0"
nostr-sdk = "0.29.0"

View File

@@ -33,6 +33,10 @@ pub fn convert_enostr_filter(filter: &enostr::Filter) -> nostrdb::Filter {
nfilter.since(since);
}
if let Some(until) = filter.until {
nfilter.until(until);
}
if let Some(limit) = filter.limit {
nfilter.limit(limit.into());
}