From 8422027848813f59b17ce32261d6778eb643dac2 Mon Sep 17 00:00:00 2001 From: Raunak-Kumar7 <73169853+Raunak-Kumar7@users.noreply.github.com> Date: Mon, 13 May 2024 12:57:41 +0530 Subject: [PATCH] Update api.py Corrected metadata instead of corpus --- extensions/superboogav2/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/superboogav2/api.py b/extensions/superboogav2/api.py index 552c1c2c..99b0e749 100644 --- a/extensions/superboogav2/api.py +++ b/extensions/superboogav2/api.py @@ -107,7 +107,7 @@ class Handler(BaseHTTPRequestHandler): elif path in ['/api/v1/delete', '/api/delete']: metadata = body.get('metadata') - if corpus is None: + if metadata is None: self._send_412_error("Missing parameter 'metadata'") return