mirror of
https://github.com/brmlab/misc.git
synced 2025-06-07 09:24:02 +02:00
workaround for showing monday events
This commit is contained in:
parent
ab01dfa6d3
commit
33349de824
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ for line in lines:
|
|||
a = re.match(r" \* (.*?) (.*)", line)
|
||||
if a is not None:
|
||||
diff = datetime.datetime.strptime(a.group(1),"%d.%m.%Y") - now
|
||||
if diff < datetime.timedelta(weeks=1) and diff >= datetime.timedelta(days=0):
|
||||
if diff < datetime.timedelta(weeks=1) and diff >= datetime.timedelta(days=-1):
|
||||
weeklines.append(line)
|
||||
|
||||
for line in weeklines:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue