Skip to content

Commit cffff4d

Browse files
Update advanced search to also support JSON queries
1 parent 43de64b commit cffff4d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

ReversingLabs/SDK/a1000.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ def delete_samples(self, hash_input):
984984

985985
self.__raise_on_error(response)
986986

987+
987988
return response
988989

989990
def check_sample_removal_status_v2(self, task_id):
@@ -1812,8 +1813,8 @@ def advanced_search_v3(self, query_string, ticloud=False, start_search_date=None
18121813
Query string example:
18131814
'av-count:5 available:TRUE'
18141815
1815-
:param query_string: query string
1816-
:type query_string: str
1816+
:param query_string: search query
1817+
:type query_string: str or dict
18171818
:param ticloud: show only cloud results
18181819
:type ticloud: bool
18191820
:param start_search_date: the starting date for the search; this parameter represents the later
@@ -1834,9 +1835,6 @@ def advanced_search_v3(self, query_string, ticloud=False, start_search_date=None
18341835
:return: response
18351836
:rtype: requests.Response
18361837
"""
1837-
if not isinstance(query_string, str):
1838-
raise WrongInputError("The search query must be a string.")
1839-
18401838
if not isinstance(ticloud, bool):
18411839
raise WrongInputError("ticloud parameter must be boolean.")
18421840

@@ -1888,8 +1886,8 @@ def advanced_search_v3_aggregated(self, query_string, ticloud=False, start_searc
18881886
Query string example:
18891887
'av-count:5 available:TRUE'
18901888
1891-
:param query_string: query string
1892-
:type query_string: str
1889+
:param query_string: search query
1890+
:type query_string: str or dict
18931891
:param ticloud: show only cloud results
18941892
:type ticloud: bool
18951893
:param start_search_date: the starting date for the search; this parameter represents the later

0 commit comments

Comments
 (0)