Skip to content

Commit

Permalink
fix(scraper): correct closing/opening logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Jan 25, 2022
1 parent 847bafc commit 1ef5f53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions yadc/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ def __init__(

@staticmethod
def dvsa_disabled():
return (
datetime.now().time() < self.DVSA_OPENS
or datetime.now().time() > self.DVSA_CLOSES
)
return datetime.now() < dt.combine(
dt.date.today(), self.DVSA_OPENS
) or datetime.now() > dt.combine(dt.date.today(), self.DVSA_CLOSES)

@staticmethod
def input_text_box(el, text):
Expand Down

0 comments on commit 1ef5f53

Please # to comment.