Skip to content

Commit

Permalink
Update search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
reskyner authored Feb 18, 2021
1 parent 7c1528d commit a0d7391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions search.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def similarity_search(self, smiles, threshold, search_ext="/search.realsearch:se
:return:
"""
json_data = quote(f'{{"search":{{"query":"{smiles}","similarityThreshold":"{str(threshold)}"}}}}')
full_str = f'controlPath=sim&jsonData={json_data}&reqMethod=POST'
full_str = f'controlPath=sim&jsonData={json_data}&PageSize=10000&reqMethod=POST'

return self.run_request(search_ext=search_ext, full_str=full_str)

Expand All @@ -80,6 +80,6 @@ def substructure_search(self, smiles, search_ext="/search.realsearch:searchreals
"""

json_data = quote(f'{{"search":"{smiles}"}}')
full_str = f'controlPath=sub&jsonData={json_data}&reqMethod=POST'
full_str = f'controlPath=sub&jsonData={json_data}&PageSize=10000&reqMethod=POST'

return self.run_request(search_ext=search_ext, full_str=full_str)
return self.run_request(search_ext=search_ext, full_str=full_str)

0 comments on commit a0d7391

Please sign in to comment.