Skip to content

Commit 97dca96

Browse files
authored
Fix error in details command (#75)
1 parent cf746e4 commit 97dca96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytr/details.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def stock_details(self):
7272

7373
def news(self, relevant_days=30):
7474
since = datetime.now() - timedelta(days=relevant_days)
75-
if not hasattr(news, 'neonNews'):
75+
if not hasattr(self, 'neonNews'):
7676
return
7777
for news in self.neonNews:
7878
newsdate = datetime.fromtimestamp(news['createdAt'] / 1000.0)

0 commit comments

Comments
 (0)