From 2d30886e742124f52a7b968cce0f51a01b309d63 Mon Sep 17 00:00:00 2001 From: monosans Date: Mon, 29 Jan 2024 00:33:55 +0300 Subject: [PATCH] Iterate over ProxyStorage instead of ._proxies --- proxy_scraper_checker/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy_scraper_checker/storage.py b/proxy_scraper_checker/storage.py index 03b3082..2f53e36 100644 --- a/proxy_scraper_checker/storage.py +++ b/proxy_scraper_checker/storage.py @@ -36,7 +36,7 @@ class ProxyStorage: return d def get_count(self) -> Dict[ProxyType, int]: - return dict(Counter(proxy.protocol for proxy in self._proxies)) + return dict(Counter(proxy.protocol for proxy in self)) def __iter__(self) -> Iterator[Proxy]: return iter(self._proxies)