Skip to content

Commit e47b8cb

Browse files
author
Gerit Wagner
committed
wos: fix translator (failing tests)
1 parent 7c79a7e commit e47b8cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

search_query/wos/translator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
import re
6-
6+
from search_query.constants import PLATFORM
77
from search_query.constants import Fields
88
from search_query.query import Query
99
from search_query.query import SearchField
@@ -135,6 +135,7 @@ def to_specific_syntax(cls, query: Query) -> Query:
135135
"""Convert the query to a specific syntax."""
136136

137137
query = query.copy()
138+
query.set_platform_unchecked(PLATFORM.WOS.value, silent=True)
138139

139140
cls._translate_fields(query)
140141
cls.move_fields_to_operator(query)

0 commit comments

Comments
 (0)