Update deps

This commit is contained in:
2023-08-16 22:38:46 +02:00
parent 2b1f03c076
commit 3897884a96
4 changed files with 151 additions and 225 deletions

View File

@@ -63,5 +63,5 @@ pub async fn get_books(
("uploaded_lte", uploaded_lte)
];
_make_request(format!("/api/v1/books/base/").as_str(), params).await
_make_request("/api/v1/books/base/", params).await
}

View File

@@ -102,7 +102,7 @@ impl BookWithRemote {
let mut author_parts_len = 3;
for author_caption in author_captions {
if caption_title.len() + author_parts_len + author_caption.len() + 1 <= 1024 {
if caption_title.len() + author_parts_len + author_caption.len() < 1024 {
author_parts_len = author_caption.len() + 1;
author_parts.push(author_caption);
} else {

View File

@@ -83,12 +83,12 @@ async fn get_link(
Ok(data) => {
match data {
Some(data) => Json(data).into_response(),
None => return StatusCode::NO_CONTENT.into_response(),
None => StatusCode::NO_CONTENT.into_response(),
}
},
Err(err) => {
log::error!("{:?}", err);
return StatusCode::NO_CONTENT.into_response();
StatusCode::NO_CONTENT.into_response()
},
}
}