mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
fix conditional cleaning class weight
This commit is contained in:
parent
02e043f6de
commit
df41e690ae
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ impl Util {
|
||||||
|
|
||||||
let weight = Self::get_class_weight(node);
|
let weight = Self::get_class_weight(node);
|
||||||
if weight < 0 {
|
if weight < 0 {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if Self::get_char_count(node, ',') < 10 {
|
if Self::get_char_count(node, ',') < 10 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue