From 6cd3b6152e17268fa38b42d83fa05d41fb218d82 Mon Sep 17 00:00:00 2001 From: "Jan N." <29396800+ciklista@users.noreply.github.com> Date: Fri, 23 Jan 2026 11:37:53 +0100 Subject: [PATCH] Remove unused code and debug print() in details.py --- pytr/details.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pytr/details.py b/pytr/details.py index 15cc3e0a..ed23257c 100644 --- a/pytr/details.py +++ b/pytr/details.py @@ -13,17 +13,11 @@ async def details_loop(self): recv = 0 await self.tr.stock_details(self.isin) await self.tr.news(self.isin) - # await self.tr.subscribe_news(self.isin) await self.tr.ticker(self.isin, exchange="LSX") await self.tr.performance(self.isin, exchange="LSX") await self.tr.instrument_details(self.isin) await self.tr.instrument_suitability(self.isin) - # await self.tr.add_watchlist(self.isin) - # await self.tr.remove_watchlist(self.isin) - # await self.tr.savings_plan_parameters(self.isin) - # await self.tr.unsubscribe_news(self.isin) - while True: _subscription_id, subscription, response = await self.tr.recv() @@ -45,7 +39,6 @@ async def details_loop(self): elif subscription["type"] == "instrumentSuitability": recv += 1 self.instrumentSuitability = response - print("instrumentSuitability:", response) else: print(f"unmatched subscription of type '{subscription['type']}':\n{preview(response, num_lines=30)}")