Spaces:
Sleeping
Sleeping
Update doc_searcher.py
Browse files- doc_searcher.py +1 -1
doc_searcher.py
CHANGED
|
@@ -32,7 +32,7 @@ class DocSearcher:
|
|
| 32 |
)
|
| 33 |
]
|
| 34 |
|
| 35 |
-
if type == 0
|
| 36 |
filter = Filter(
|
| 37 |
must=[
|
| 38 |
FieldCondition(
|
|
|
|
| 32 |
)
|
| 33 |
]
|
| 34 |
|
| 35 |
+
if type == 0 and law_type is not None:
|
| 36 |
filter = Filter(
|
| 37 |
must=[
|
| 38 |
FieldCondition(
|