This commit is contained in:
Rieger, Simon 2023-07-03 09:43:42 +02:00
parent 8b32d1dc6c
commit 9ac8161427

View file

@ -9,7 +9,10 @@ data = {}
today = datetime.date.today().strftime("%Y-%m-%d")
output = subprocess.check_output("khal list now 7days --format \"{start-end-time-style} {title}\"", shell=True).decode("utf-8")
next_week = (datetime.date.today() +
datetime.timedelta(days=10)).strftime("%Y-%m-%d")
output = subprocess.check_output("khal list now " + next_week + " --format \"{start-end-time-style} {title}\"", shell=True).decode("utf-8")
lines = output.split("\n")
new_lines = []