Skip to content

Commit

Permalink
Yh changed their text as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangRicky committed Jun 18, 2020
1 parent b4bb23d commit 354c391
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion YHPremarket/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .yhpremarket import *

__version__ = '0.1.4'
__version__ = '0.1.5'
2 changes: 1 addition & 1 deletion YHPremarket/yhpremarket.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def yhparse_one(ticker, verbose=False, sleep=None):
ispre = span.next_sibling.next_sibling.next_sibling.next_sibling.next_sibling.next_sibling.next_element.next_element
except:
ispre = None
if ispre == 'Pre-Market:':
if ispre in ['Pre-Market:', 'Before hours:']:
is_premarket = True
try:
pretime = span.next_sibling.next_sibling.next_sibling.next_sibling.next_sibling.next_sibling.next_element.next_element.next_element.next_element.next_element.next_element.next_element
Expand Down

0 comments on commit 354c391

Please sign in to comment.