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)