From 224895ce62696a8ffda048e85ffd67c4428cff45 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sun, 29 Jun 2025 12:56:25 +0200 Subject: [PATCH] build --- auto_import_v2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto_import_v2.py b/auto_import_v2.py index 3d8f595..753c495 100644 --- a/auto_import_v2.py +++ b/auto_import_v2.py @@ -101,6 +101,9 @@ logging.debug(output) myCmd = "ls /dev/disk/by-uuid" status, output = subprocess.getstatusoutput(myCmd) + +files_imported = 0 + # Find drives to import for l in output.splitlines(): if l in drives: @@ -221,6 +224,7 @@ for d in import_drives: logging.debug("failed to move file {}".format(file_or_dir)) else: logging.debug("Nothing to import") + mqtt_s.send_mqtt_message("sectorq/auto_import/job", {"status": "finished","file":f"{files_imported}"}) else: logging.debug("Unknown device")