From 050803a5b70ed3c1d9cc9b38f2535274170c9d99 Mon Sep 17 00:00:00 2001 From: samerbam Date: Tue, 22 Aug 2023 22:18:06 -0400 Subject: [PATCH] add print_default test --- application/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/main.py b/application/main.py index f32e579..32d53d7 100644 --- a/application/main.py +++ b/application/main.py @@ -17,7 +17,7 @@ from .thermal_print import ThermalPrinter app = FastAPI() auth = VerifyToken() data = TodoDatabase() -# printer = ThermalPrinter() +printer = ThermalPrinter() @@ -142,6 +142,9 @@ def print_todos(date: str = datetime.today().strftime('%Y-%m-%d'), auth_result: app.mount("/", StaticFiles(directory="application/static",html = True), name="static") +if __name__ == '__main__': + printer.print_default() + # if __name__ == '__main__': # print('ay') # httpd = simple_server.make_server('127.0.0.1', 8000, app)