Skip to content

Commit

Permalink
fix until filters
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Apr 13, 2024
1 parent f0d56da commit 483e8e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 483e8e8

Please sign in to comment.