mirror of https://github.com/CIRCL/AIL-framework
fix: [tags] debug
parent
07c51e111f
commit
4b21cc2939
|
@ -1472,11 +1472,10 @@ def _fix_tag_obj_id():
|
|||
new_tag = tag.split(';')[0]
|
||||
print(new_tag)
|
||||
raw = get_obj_by_tags(obj_type, [new_tag], nb_obj=500000)
|
||||
for global_id in raw.get('tagged_obj', []):
|
||||
print(global_id)
|
||||
obj_type, subtype, obj_id = global_id.split(':', 2)
|
||||
delete_object_tag(tag, obj_type, obj_id, subtype=subtype)
|
||||
add_object_tag(new_tag, obj_type, obj_id, subtype=subtype)
|
||||
for obj_id in raw.get('tagged_obj', []):
|
||||
print(obj_id)
|
||||
delete_object_tag(tag, obj_type, obj_id)
|
||||
add_object_tag(new_tag, obj_type, obj_id)
|
||||
|
||||
|
||||
# if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue