Fix for nr_of_shots calculation, by Dr. Sybren

This commit is contained in:
2016-11-07 11:04:41 +01:00
parent 732cd49e6a
commit d3afccd843

View File

@@ -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),