이미지 부족 시 duplicate 기능 추가
This commit is contained in:
1 parent
7b00d21a34
commit
24534ccb3e
2 files changed
+21
-1
No files matched your search
@@ -435,6 +435,20 @@ class CreatomateService:
|
||||
|
||||
return tag_list
|
||||
|
||||
|
||||
def counting_component(
|
||||
self,
|
||||
template : dict,
|
||||
target_template_type : str
|
||||
) -> list:
|
||||
source_elements = template["source"]["elements"]
|
||||
template_component_data = self.parse_template_component_name(source_elements)
|
||||
count = 0
|
||||
|
||||
for _, (_, template_type) in enumerate(template_component_data.items()):
|
||||
if template_type == target_template_type:
|
||||
count += 1
|
||||
return count
|
||||
|
||||
def template_matching_taged_image(
|
||||
self,
|
||||
|
||||
Reference in new issue
Block a user