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)