add print_default test

This commit is contained in:
samerbam 2023-08-22 22:18:06 -04:00
parent 37a1baeabd
commit 050803a5b7

View File

@ -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)