summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-03-23 05:53:51 +0000
committerLars Wirzenius <liw@liw.fi>2022-03-23 05:53:51 +0000
commitf44770ab64d465c099ca893a0536e467052f9d3b (patch)
treee45cfffc298033cc34c8b9d7bed894e4696c55f8 /src/bin/obnam-server.rs
parent4a9b26903d48d622f7f2a01eb54eec88e92da868 (diff)
parentd692b1877a18e83e23cfbcad1b5e9f91f561e7c1 (diff)
downloadobnam2-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.rs4
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);