diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 14:17:43 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 14:17:43 +0900 |
| commit | 35aa61c651217663406c9cd6df404f85338b2d68 (patch) | |
| tree | 9d85dd87e725984d45d7b6bdfef8b316ddfc4ae7 /services/news-collector/src/news_collector/collectors/reddit.py | |
| parent | 17540c99d5e28576a6642e23d7bd6b297513e2d8 (diff) | |
style: fix lint and formatting issues across news collector and shared
Diffstat (limited to 'services/news-collector/src/news_collector/collectors/reddit.py')
| -rw-r--r-- | services/news-collector/src/news_collector/collectors/reddit.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/news-collector/src/news_collector/collectors/reddit.py b/services/news-collector/src/news_collector/collectors/reddit.py index 11b855c..226a2f9 100644 --- a/services/news-collector/src/news_collector/collectors/reddit.py +++ b/services/news-collector/src/news_collector/collectors/reddit.py @@ -39,7 +39,9 @@ class RedditCollector(BaseCollector): headers = {"User-Agent": "TradingPlatform/1.0 (research@example.com)"} try: async with aiohttp.ClientSession() as session: - async with session.get(url, headers=headers, timeout=aiohttp.ClientTimeout(total=10)) as resp: + async with session.get( + url, headers=headers, timeout=aiohttp.ClientTimeout(total=10) + ) as resp: if resp.status == 200: data = await resp.json() return data.get("data", {}).get("children", []) |
