From a5e880dfd29339bd98fb06c61a0304c1240c62a5 Mon Sep 17 00:00:00 2001 From: samerbam Date: Wed, 23 Aug 2023 09:59:40 -0400 Subject: [PATCH] fix todos ? --- application/thermal_print.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/thermal_print.py b/application/thermal_print.py index 43e1a80..a6c18d5 100644 --- a/application/thermal_print.py +++ b/application/thermal_print.py @@ -66,7 +66,7 @@ class ThermalPrinter(): def print_todos(self, todos=[{"time": "1:00pm to 2:00pm", "text": "Read a book"}]): for x in self._parse_todos(todos): # print(x) - self.p.charcode("cp437") + # self.p.charcode("cp437") self.p.set(align="left") self.p.text(x[0]) self.p.set(align="right") @@ -146,7 +146,7 @@ class ThermalPrinter(): def _parse_todos(self, data): out = [] for x in data: - out.append(["○ " + x["time"], x["text"]]) + out.append(["O " + x["time"], x["text"]]) return out #Return: ["□ 1:00pm to 2:00pm", "Read a book"]