From d719ed6a77c914be28d18f48c79e6947a86b07e1 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Thu, 26 Sep 2024 13:00:09 +0200 Subject: [PATCH] code review of Davide Principi Co-authored-by: Davide Principi --- imageroot/actions/delete-task/20delete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageroot/actions/delete-task/20delete b/imageroot/actions/delete-task/20delete index 52310bf..7e065be 100755 --- a/imageroot/actions/delete-task/20delete +++ b/imageroot/actions/delete-task/20delete @@ -15,5 +15,5 @@ task_id = data["task_id"] localuser = data["localuser"] # remove the task cron/env/password/lock files -for file in glob.iglob("*/"+localuser+'_'+task_id+".*"): +for file in list(glob.iglob("imapsync/"+localuser+'_'+task_id+".*")) + list(glob.iglob("cron/"+localuser+'_'+task_id+".*")): os.remove(file)