Skip to content

Commit

Permalink
make the label active when updating it, in the case if it is inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji14 committed Jan 11, 2024
1 parent cea1bae commit 7d3f313
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions emission/core/wrapper/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7d3f313

Please sign in to comment.