Added roomcount filter

This commit is contained in:
Franklin 2023-04-14 17:06:59 -04:00
parent 9ca2b8ab85
commit 15200df989

View File

@ -10,6 +10,7 @@ pub enum Filter {
Finished,
ByProjectType(ProjectType),
ByProjectCondition(ProjectCondition),
ByRoomCount(i32),
}
impl Filter {
@ -20,6 +21,7 @@ impl Filter {
Filter::Finished => (String::from("finished"), String::from("true")),
Filter::ByProjectType(project_type) => (String::from("byprojecttype"), project_type.to_string()),
Filter::ByProjectCondition(project_condition) => (String::from("byprojectcondition"), project_condition.to_string()),
Filter::ByRoomCount(room_count) => (String::from("byroomcount"), room_count.to_string()),
}
}
}