Spaces:
Sleeping
Sleeping
V2 this one is last
Browse files- router.py +3 -3
- 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
|
| 32 |
-
res = user_Agent.get_Search_Results(input_Data, token)
|
| 33 |
if res:
|
| 34 |
-
return {"status": 200, "
|
| 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
|
|
|