mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: [tags] debug
This commit is contained in:
parent
efb8b2d0d3
commit
07c51e111f
1 changed files with 1 additions and 1 deletions
|
@ -1473,8 +1473,8 @@ def _fix_tag_obj_id():
|
||||||
print(new_tag)
|
print(new_tag)
|
||||||
raw = get_obj_by_tags(obj_type, [new_tag], nb_obj=500000)
|
raw = get_obj_by_tags(obj_type, [new_tag], nb_obj=500000)
|
||||||
for global_id in raw.get('tagged_obj', []):
|
for global_id in raw.get('tagged_obj', []):
|
||||||
obj_type, subtype, obj_id = global_id.split(':', 2)
|
|
||||||
print(global_id)
|
print(global_id)
|
||||||
|
obj_type, subtype, obj_id = global_id.split(':', 2)
|
||||||
delete_object_tag(tag, obj_type, obj_id, subtype=subtype)
|
delete_object_tag(tag, obj_type, obj_id, subtype=subtype)
|
||||||
add_object_tag(new_tag, obj_type, obj_id, subtype=subtype)
|
add_object_tag(new_tag, obj_type, obj_id, subtype=subtype)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue