Skip to content

Commit

Permalink
Fix error in details command (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katzmann1983 authored Jun 25, 2024
1 parent cf746e4 commit 97dca96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytr/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97dca96

Please sign in to comment.