Revert "fix: More responses athat are lists"

This reverts commit 709a10c64c.
pull/1145/head
Raphaël Vinot 2024-02-02 14:28:04 +01:00
parent 709a10c64c
commit 9d4d083e46
1 changed files with 2 additions and 2 deletions

View File

@ -3515,14 +3515,14 @@ class PyMISP:
o.from_dict(**updated_organisation_blocklist)
return o
def delete_event_blocklist(self, event_blocklist: MISPEventBlocklist | str | UUID) -> dict[str, Any] | list[dict[str, Any]]:
def delete_event_blocklist(self, event_blocklist: MISPEventBlocklist | str | UUID) -> dict[str, Any]:
"""Delete a blocklisted event by id
:param event_blocklist: event block list to delete
"""
event_blocklist_id = get_uuid_or_id_from_abstract_misp(event_blocklist)
response = self._prepare_request('POST', f'eventBlocklists/delete/{event_blocklist_id}')
return self._check_json_response_list(response)
return self._check_json_response(response)
def delete_organisation_blocklist(self, organisation_blocklist: MISPOrganisationBlocklist | str | UUID) -> dict[str, Any]:
"""Delete a blocklisted organisation by id