This commit is contained in:
zman 2025-04-07 17:38:36 -04:00
parent 96ee09c7be
commit c242c75b6b

2
app.py
View File

@ -11,7 +11,6 @@ import mimetypes
import logging import logging
from logging.handlers import RotatingFileHandler from logging.handlers import RotatingFileHandler
import time import time
import usb.core # For USB device re-initialization
app = Flask(__name__) app = Flask(__name__)
@ -139,6 +138,7 @@ def process_queue():
# Process the file (convert and print) # Process the file (convert and print)
app.logger.info(f"Processing file: {file_path}") app.logger.info(f"Processing file: {file_path}")
print_address_label(file_path) print_address_label(file_path)
time.sleep(10)
# Signal that the task is done # Signal that the task is done
file_queue.task_done() file_queue.task_done()