diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-11-09 10:02:58 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-11-09 10:02:58 +0200 |
commit | f46e19447a1d4adbdebd3e9e448e2445327b40f1 (patch) | |
tree | d0c4a3872f8cc0585a6bde6b846e920d62f57d3a /src/bin/obnam-server.rs | |
parent | 482fc0dcb42a02e44fbdf3bb5e42ee8639b895d5 (diff) | |
download | obnam2-f46e19447a1d4adbdebd3e9e448e2445327b40f1.tar.gz |
start on obnam-list
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r-- | src/bin/obnam-server.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index cc21855..4e53953 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -195,7 +195,11 @@ pub async fn search_chunks( error!("search has more than one key to search for"); return Ok(ChunkResult::BadRequest); } - index.find(&key, &value) + if key == "generation" && value == "true" { + index.find_generations() + } else { + index.find(&key, &value) + } } else { error!("search has no key to search for"); return Ok(ChunkResult::BadRequest); |