Antalela commited on
Commit
7157a06
·
1 Parent(s): 4c40ec0

V2 this one is last

Browse files
Files changed (2) hide show
  1. router.py +3 -3
  2. searcher.py.gpg +0 -0
router.py CHANGED
@@ -28,10 +28,10 @@ class InputData(BaseModel):
28
  async def run_script(input_Data: InputData, token: str = Header(None, alias="api-token")):
29
  try:
30
  if token:
31
- if input_Data := input_Data.data:
32
- res = user_Agent.get_Search_Results(input_Data, token)
33
  if res:
34
- return {"status": 200, "user_ID": input_Data.user_ID, "data": res}
35
  else:
36
  raise HTTPException(status_code=500, detail="The request can not be fulfilled")
37
  else:
 
28
  async def run_script(input_Data: InputData, token: str = Header(None, alias="api-token")):
29
  try:
30
  if token:
31
+ if input_Data.data:
32
+ res = user_Agent.get_Search_Results(input_Data.data, token)
33
  if res:
34
+ return {"status": 200, "data": res}
35
  else:
36
  raise HTTPException(status_code=500, detail="The request can not be fulfilled")
37
  else:
searcher.py.gpg CHANGED
Binary files a/searcher.py.gpg and b/searcher.py.gpg differ