Recombined bot and service, fixed dockerfile
This commit is contained in:
@@ -10,6 +10,7 @@ use super::{Spell, InsertSpell};
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct GetAllParams {
|
||||
name: Option<String>,
|
||||
like_name: Option<String>,
|
||||
schools: Option<String>,
|
||||
levels: Option<String>,
|
||||
ritual: Option<bool>,
|
||||
@@ -35,6 +36,7 @@ async fn get_all(req: HttpRequest) -> HttpResponse {
|
||||
};
|
||||
let mut filters = QueryFilters::default();
|
||||
filters.by_name = params.name.clone();
|
||||
filters.like_name = params.like_name.clone();
|
||||
filters.by_schools = match ¶ms.schools {
|
||||
Some(schools) => Some(schools.split(",").map(|s| s.to_string()).collect()),
|
||||
None => None
|
||||
|
||||
Reference in New Issue
Block a user