diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-23 05:53:51 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-23 05:53:51 +0000 |
commit | f44770ab64d465c099ca893a0536e467052f9d3b (patch) | |
tree | e45cfffc298033cc34c8b9d7bed894e4696c55f8 /src/bin/obnam-server.rs | |
parent | 4a9b26903d48d622f7f2a01eb54eec88e92da868 (diff) | |
parent | d692b1877a18e83e23cfbcad1b5e9f91f561e7c1 (diff) | |
download | obnam2-f44770ab64d465c099ca893a0536e467052f9d3b.tar.gz |
Merge branch 'liw/trust-root' into 'main'
Add chunk that lists all generations
Closes #62 and #34
See merge request obnam/obnam!224
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r-- | src/bin/obnam-server.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index 0b80854..5be2cee 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -153,9 +153,7 @@ pub async fn search_chunks( error!("search has more than one key to search for"); return Ok(ChunkResult::BadRequest); } - if key == "generation" && value == "true" { - store.find_generations().expect("SQL lookup failed") - } else if key == "label" { + if key == "label" { store.find_by_label(value).expect("SQL lookup failed") } else { error!("unknown search key {:?}", key); |