mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Rework schedule a bit to make it more maintainable & easier to code
This commit is contained in:
parent
54d31c943a
commit
1857bdefe9
4 changed files with 161 additions and 94 deletions
|
|
@ -24,6 +24,7 @@ def find_target_date(arg: Optional[str]) -> datetime:
|
|||
elif arg.lower() == "overmorgen": # Day after tomorrow's schedule
|
||||
day += timedelta(days=2)
|
||||
|
||||
# TODO show a different embed when "(over)morgen" is requested & it lands on a weekend
|
||||
# Don't land on a weekend
|
||||
day = skip_weekends(day)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue