fix: extend timeout for blocky, fix db query
This commit is contained in:
parent
779d5cb8d2
commit
90575b076e
1 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,7 @@ def request_test_now(test_url: str) -> str:
|
|||
"Cache-Control": "no-cache"
|
||||
}
|
||||
request_count = 0
|
||||
while request_count < 20:
|
||||
while request_count < 60:
|
||||
params = {
|
||||
"url": test_url,
|
||||
"timestamp": str(int(time.time())) # unix timestamp
|
||||
|
@ -84,7 +84,8 @@ class BlockBlockyAutomation(BlockMirrorAutomation):
|
|||
)
|
||||
.all()
|
||||
)
|
||||
for proxy_url in cn_proxies:
|
||||
for row in cn_proxies:
|
||||
proxy_url = row[0]
|
||||
test_id = request_test_now(proxy_url)
|
||||
if request_test_result(test_id) > 1:
|
||||
self.patterns["blocky"].append(proxy_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue