Compare commits
	
		
			1 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 12d941fe2e | 
							
								
								
									
										2
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.py
									
									
									
									
									
								
							| @@ -10,6 +10,7 @@ from PIL import Image | |||||||
| import mimetypes | import mimetypes | ||||||
| import logging | import logging | ||||||
| from logging.handlers import RotatingFileHandler | from logging.handlers import RotatingFileHandler | ||||||
|  | import time | ||||||
|  |  | ||||||
| app = Flask(__name__) | app = Flask(__name__) | ||||||
|  |  | ||||||
| @@ -98,6 +99,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() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user