Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
garlontas committed Jun 19, 2023
1 parent 9615201 commit 58c702f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pystreamapi/conditions/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def today_utc():
if isinstance(d, __datetime) else __datetime.now(__timezone.utc).date() == d



def yesterday():
"""
The condition that checks if a datetime is yesterday.
Expand Down Expand Up @@ -147,7 +146,7 @@ def last_week():
"""
return lambda d: __datetime.now().date().isocalendar()[1] - 1 == d.date().isocalendar()[1] if \
isinstance(d, __datetime) else __datetime.now().date().isocalendar()[1] - 1 \
== d.isocalendar()[1]
== d.isocalendar()[1]


def last_week_utc():
Expand All @@ -168,7 +167,7 @@ def next_week():
"""
return lambda d: __datetime.now().date().isocalendar()[1] + 1 == d.date().isocalendar()[1] if \
isinstance(d, __datetime) else __datetime.now().date().isocalendar()[1] + 1 \
== d.isocalendar()[1]
== d.isocalendar()[1]


def next_week_utc():
Expand Down

0 comments on commit 58c702f

Please sign in to comment.