place breaks in txt files and in a separate directory

This commit is contained in:
JJJHolscher 2024-07-13 12:44:41 +02:00
parent 858e29a4da
commit d345dcf6d1

View File

@ -99,7 +99,7 @@ def write_break_message(msg):
today = datetime.now().strftime("%Y-%m-%d") today = datetime.now().strftime("%Y-%m-%d")
minute = datetime.now().strftime("%H:%M") minute = datetime.now().strftime("%H:%M")
msg = f"{minute} BREAK {msg}" msg = f"{minute} BREAK {msg}"
with open(f"/home/gum/z/{today}.md", "a") as f: with open(f"/home/gum/z/break/{today}.txt", "a") as f:
print(msg) print(msg)
f.write(msg + "\n") f.write(msg + "\n")