Skip to content

Commit c86905f

Browse files
committed
chg: [image engine] add fct to describe all images
1 parent 76ac08b commit c86905f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

bin/lib/images_engine.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ def _create_domains_up_description():
139139
progress = int(done * 100 / nb_domains)
140140
print(f'{done}/{nb_domains} {progress}%')
141141

142+
def _create_image_description():
143+
total = Images.Images().get_nb()
144+
done = 0
145+
for image in Images.get_all_images_objects():
146+
api_get_image_description(image.get_global_id())
147+
done += 1
148+
progress = int(done * 100 / total)
149+
print(f'{done}/{total} {progress}%')
150+
142151

143152
if __name__ == '__main__':
144-
_create_domains_up_description()
153+
# _create_domains_up_description()
154+
_create_image_description()

0 commit comments

Comments
 (0)