Spaces:
Running
Running
clean up design
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def matches_prefilters(doc, require_has_math: bool | None, require_has_infobox:
|
|
| 36 |
meta = doc.metadata or {}
|
| 37 |
if require_has_math and not bool(meta.get("has_math")):
|
| 38 |
return False
|
| 39 |
-
if require_has_infobox and meta.get("infoboxes", "[]")
|
| 40 |
return False
|
| 41 |
return True
|
| 42 |
|
|
|
|
| 36 |
meta = doc.metadata or {}
|
| 37 |
if require_has_math and not bool(meta.get("has_math")):
|
| 38 |
return False
|
| 39 |
+
if require_has_infobox and meta.get("infoboxes", "[]") == "[]":
|
| 40 |
return False
|
| 41 |
return True
|
| 42 |
|