receipts/todo.py

12 lines
309 B
Python
Raw Permalink Normal View History

2025-01-14 17:42:59 -05:00
from printer import p
from datetime import datetime
with p:
p.title(" TODO List ", size=4)
p.subtitle(datetime.today().strftime("%Y-%m-%d"))
p.ln()
with open("/home/infinidoge/TODO.txt", "r") as f:
for line in f.readlines():
p.textln(line.replace("- ", "[ ] ").rstrip())