Skip to content

Commit 554bb48

Browse files
committed
added format param
1 parent 29e9882 commit 554bb48

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

backend/problem/views/parse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ def send_to_parser(self, data: ParserInput) -> dict | None:
6969

7070
logger.info("Sending to LangPro service:", asdict(data))
7171

72+
params = asdict(data)
73+
params['format'] = 'annotator'
74+
7275
try:
7376
response = requests.post(
7477
url=f"{settings.LANGPRO_URL}/api/prove/",
75-
json=asdict(data),
78+
json=params,
7679
headers={"Content-Type": "application/json"},
7780
)
7881
response.raise_for_status()

0 commit comments

Comments
 (0)