get users almost done i think

This commit is contained in:
Reid 2023-08-30 13:14:18 -07:00
parent 3daa17cccf
commit 463d4b742b
Signed by: reidlab
GPG key ID: 6C9EAA3364F962C8
2 changed files with 4 additions and 2 deletions

View file

@ -88,7 +88,9 @@ pub fn get_users(input: Form<FormGetUsers>) -> status::Custom<&'static str> {
let response = if amount < 1 {
String::from("-1")
} else {
vec![results.join("|"), format!("{}:#{}:10", amount, input.page * 10)].join("#")
println!("{:?}", results);
println!("{:?}", vec![results.join("|"), format!("{}:{}:10", amount, input.page * 10)].join("#"));
vec![results.join("|"), format!("{}:{}:10", amount, input.page * 10)].join("#")
};
return status::Custom(Status::Ok, Box::leak(response.into_boxed_str()))