From 7d3f313d2b7f228e678b3d4ccff0d11595642df7 Mon Sep 17 00:00:00 2001 From: Jijeong Lee Date: Thu, 11 Jan 2024 14:38:30 -0800 Subject: [PATCH] make the label active when updating it, in the case if it is inactive --- emission/core/wrapper/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/emission/core/wrapper/user.py b/emission/core/wrapper/user.py index 9cc0d9646..d8f2a2b5a 100644 --- a/emission/core/wrapper/user.py +++ b/emission/core/wrapper/user.py @@ -272,6 +272,7 @@ def updateUserCustomLabel(self, updated_label): if new_label in items: updated_frequency = items[new_label]['frequency'] + 1 items[new_label]['frequency'] = updated_frequency + items[new_label]['isActive'] = True # when a user added a new customized label if is_new_label_must_added and not new_label in items: