From 97dca9604bbdcd3c531f8f473af6e435e8a069ca Mon Sep 17 00:00:00 2001 From: Jens Humrich Date: Tue, 25 Jun 2024 12:11:24 +0200 Subject: [PATCH] Fix error in details command (#75) --- pytr/details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytr/details.py b/pytr/details.py index 80011f5..32d8130 100644 --- a/pytr/details.py +++ b/pytr/details.py @@ -72,7 +72,7 @@ def stock_details(self): def news(self, relevant_days=30): since = datetime.now() - timedelta(days=relevant_days) - if not hasattr(news, 'neonNews'): + if not hasattr(self, 'neonNews'): return for news in self.neonNews: newsdate = datetime.fromtimestamp(news['createdAt'] / 1000.0)