From 2d61260583571f5b82eae6ca559041bb6f59909a Mon Sep 17 00:00:00 2001 From: Connor Rhodes Date: Thu, 23 Apr 2026 20:19:14 -0500 Subject: [PATCH] fix lp on nix --- print/app.py | 7 ++++++- print/templates/index.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/print/app.py b/print/app.py index 77b257e..8a97cb5 100644 --- a/print/app.py +++ b/print/app.py @@ -68,7 +68,12 @@ def upload_and_print(): app.logger.info( f"Sending '{filename}' ({page_count} pages) to printer '{PRINTER_NAME}'" ) - command = ["lp", "-d", PRINTER_NAME, filepath] + command = [ + "lp", + "-d", + PRINTER_NAME, + filepath, + ] result = subprocess.run( command, capture_output=True, text=True, check=True ) diff --git a/print/templates/index.html b/print/templates/index.html index 5564e1f..fb1aea0 100644 --- a/print/templates/index.html +++ b/print/templates/index.html @@ -38,7 +38,7 @@ {% endif %} {% endwith %} -
+