mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-25 07:09:40 -05:00
Merge pull request #26 from cclauss/patch-1
TR_query() function signature matches TR_inspect()
This commit is contained in:
commit
9e626e6843
@ -89,13 +89,13 @@ def TR_check_auth(function, param):
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
def TR_query(observable):
|
def TR_query(text_block):
|
||||||
''' Pass the functions and parameters to check_auth to query the API
|
''' Pass the functions and parameters to check_auth to query the API
|
||||||
Return the final response
|
Return the final response
|
||||||
'''
|
'''
|
||||||
response = TR_check_auth(TR_inspect, text_block)
|
response = TR_check_auth(TR_inspect, text_block)
|
||||||
inspect_output = response.text
|
inspect_output = response.text
|
||||||
response = TR_check_auth(TR_enrich, inspect_output)
|
response = TR_check_auth(TR_enrich, inspect_output) # TR_enrich() is undefined
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def TR_inspect(text_block):
|
def TR_inspect(text_block):
|
||||||
|
Loading…
Reference in New Issue
Block a user