Skip to content

Commit

Permalink
no autoposting to work-in-progress questions on wednesday
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Bagiński committed Oct 1, 2023
1 parent 21e1d88 commit 9790d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ async def autopost_not_started(self) -> None:
def is_time_for_autopost_wip(self) -> bool:
now = datetime.now()
return (
now.weekday() in (0, 2, 4) # Monday, Wednesday, or Friday
now.weekday() in (0, 4) # Monday or Friday
and 8 <= now.hour <= 12 # between 08:00 and 12:00
and self.last_wip_autopost_attempt_date
!= now.date() # Wasn't posted today yet
Expand Down

0 comments on commit 9790d7c

Please sign in to comment.