Skip to content

Commit

Permalink
IT-3686: Change how two dict's are comboned
Browse files Browse the repository at this point in the history
  • Loading branch information
brucehoff committed Jul 3, 2024
1 parent c6774ae commit f5cb32f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion set_tags/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def get_access_approved_role_tag(tags):
def merge_tags(list1, list2):
'''Merge two lists of tags, the second overriding the first on key collisions
'''
unique_tags = format_tags_kv_kp(list1) | format_tags_kv_kp(list2)
unique_tags = format_tags_kv_kp(list1)
unique_tags.update(format_tags_kv_kp(list2))
result=[]
for entry in unique_tags:
result.append({'Key':entry,'Value':unique_tags[entry]})
Expand Down

0 comments on commit f5cb32f

Please sign in to comment.