Fix KeywordSection::load not deserializing correctly
This commit is contained in:
parent
033f41b0ac
commit
91b587f7db
@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
pub struct KeywordSection {
|
||||
pub threshold: u64,
|
||||
pub required: Vec<String>,
|
||||
pub requiredKeywords: Vec<String>,
|
||||
pub keywords: Vec<String>,
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ impl KeywordSection {
|
||||
}
|
||||
}
|
||||
|
||||
for rkw in self.required.to_owned() {
|
||||
for rkw in self.requiredKeywords.to_owned() {
|
||||
if s.contains(&rkw) {
|
||||
hits += 1;
|
||||
hit_required = true;
|
||||
|
Loading…
Reference in New Issue
Block a user