Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def chrome(url:str=None,wait:int=5,header:str=None,cookie:str=None):
|
|
| 22 |
return {"code": 500,"msg":"No target URL"}
|
| 23 |
|
| 24 |
# 等待时间必须在 0 到 30 之间
|
| 25 |
-
if
|
| 26 |
wait_time = wait
|
| 27 |
else:
|
| 28 |
return {"code": 500,"msg":"The waiting time must be between 0 and 30"}
|
|
|
|
| 22 |
return {"code": 500,"msg":"No target URL"}
|
| 23 |
|
| 24 |
# 等待时间必须在 0 到 30 之间
|
| 25 |
+
if wait in range(0, 31):
|
| 26 |
wait_time = wait
|
| 27 |
else:
|
| 28 |
return {"code": 500,"msg":"The waiting time must be between 0 and 30"}
|