|
@@ -78,7 +78,7 @@ class Table:
|
|
|
def check_html(self):
|
|
|
self.get_empty()
|
|
|
html_str = self.get_str()
|
|
|
- if (self.empty > 4 and self.empty > self.total // 4) or ('项目' in str and '每份' in str and '营养素参考值' in str and np.max([len(a) for a in self.html_arr])<3):
|
|
|
+ if (self.empty > 4 and self.empty > self.total // 4) or ('项目' in html_str and '每份' in html_str and '营养素参考值' in html_str and np.max([len(a) for a in self.html_arr])<3):
|
|
|
self.change_green2white()
|
|
|
return 1
|
|
|
return 0
|