From 263071750cff51ab0eb54dad7cdbe96cb01551cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 2 Sep 2021 13:23:04 +0200 Subject: [PATCH] Fixed logs removal --- server/src/uds/core/managers/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/core/managers/log.py b/server/src/uds/core/managers/log.py index 91f4205c..d066fe11 100644 --- a/server/src/uds/core/managers/log.py +++ b/server/src/uds/core/managers/log.py @@ -153,7 +153,7 @@ class LogManager: """ owner_type = transDict.get(type(wichObject), None) - if owner_type: + if owner_type is not None: self.__clearLogs(owner_type, wichObject.id) else: logger.debug('Requested clearLogs for a type of object not covered: %s', wichObject)