|
@@ -46,7 +46,9 @@ class Material():
|
|
number = row[4]
|
|
number = row[4]
|
|
video_share = row[5]
|
|
video_share = row[5]
|
|
video_ending = row[6]
|
|
video_ending = row[6]
|
|
- title = row[7]
|
|
+ crop_tool = row[7]
|
|
|
|
+ gg_duration = row[8]
|
|
|
|
+ title = row[9]
|
|
|
|
|
|
def count_items(item, separator):
|
|
def count_items(item, separator):
|
|
if item and item not in {'None', ''}:
|
|
if item and item not in {'None', ''}:
|
|
@@ -57,6 +59,8 @@ class Material():
|
|
video_id_total = count_items(str(video_id), ',')
|
|
video_id_total = count_items(str(video_id), ',')
|
|
new_id_total = count_items(str(new_id), ',')
|
|
new_id_total = count_items(str(new_id), ',')
|
|
title_total = count_items(str(title), '/')
|
|
title_total = count_items(str(title), '/')
|
|
|
|
+ crop_total = count_items(str(crop_tool))
|
|
|
|
+ gg_duration_total = count_items(str(gg_duration))
|
|
|
|
|
|
values = [old_id_total, video_id_total, new_id_total, video_share, video_ending, title_total]
|
|
values = [old_id_total, video_id_total, new_id_total, video_share, video_ending, title_total]
|
|
task_mark = "_".join(map(str, values))
|
|
task_mark = "_".join(map(str, values))
|
|
@@ -70,7 +74,9 @@ class Material():
|
|
"number": number,
|
|
"number": number,
|
|
"title": title,
|
|
"title": title,
|
|
"video_share": video_share,
|
|
"video_share": video_share,
|
|
- "video_ending": video_ending
|
|
+ "video_ending": video_ending,
|
|
|
|
+ "crop_total": crop_total,
|
|
|
|
+ "gg_duration_total": gg_duration_total,
|
|
}
|
|
}
|
|
processed_list.append(number_dict)
|
|
processed_list.append(number_dict)
|
|
else:
|
|
else:
|