Fix for nr_of_shots calculation, by Dr. Sybren
This commit is contained in:
@@ -60,7 +60,7 @@ def for_project(project, attract_props, task_id=None, shot_id=None):
|
||||
|
||||
# Some aggregated stats
|
||||
stats = {
|
||||
'nr_of_shots': sum(shot.properties.used_in_edit for shot in shots),
|
||||
'nr_of_shots': sum(shot.properties.used_in_edit or 0 for shot in shots),
|
||||
'total_frame_count': sum(shot.properties.duration_in_edit_in_frames or 0
|
||||
for shot in shots
|
||||
if shot.properties.used_in_edit),
|
||||
|
Reference in New Issue
Block a user