diff --git a/attract/shots/routes.py b/attract/shots/routes.py index c0658ef..fc6a2cf 100644 --- a/attract/shots/routes.py +++ b/attract/shots/routes.py @@ -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),