File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,23 +55,23 @@ async def number_of_proxies_to_process(timestamp):
55
55
good_proxies_count = await db .count (
56
56
Proxy .select ().where (
57
57
Proxy .number_of_bad_checks == 0 ,
58
- Proxy .next_check_time < timestamp - Proxy . checking_period ,
58
+ Proxy .next_check_time < timestamp ,
59
59
)
60
60
)
61
61
62
62
bad_proxies_count = await db .count (
63
63
Proxy .select ().where (
64
64
Proxy .number_of_bad_checks > 0 ,
65
65
Proxy .number_of_bad_checks < settings .DEAD_PROXY_THRESHOLD ,
66
- Proxy .next_check_time < timestamp - settings . BAD_PROXY_CHECKING_PERIOD ,
66
+ Proxy .next_check_time < timestamp ,
67
67
)
68
68
)
69
69
70
70
dead_proxies_count = await db .count (
71
71
Proxy .select ().where (
72
72
Proxy .number_of_bad_checks >= settings .DEAD_PROXY_THRESHOLD ,
73
73
Proxy .number_of_bad_checks < settings .DO_NOT_CHECK_ON_N_BAD_CHECKS ,
74
- Proxy .next_check_time < timestamp - settings . DEAD_PROXY_CHECKING_PERIOD ,
74
+ Proxy .next_check_time < timestamp ,
75
75
)
76
76
)
77
77
You can’t perform that action at this time.
0 commit comments