Skip to content

Commit

Permalink
[project] fix casting to float for fps
Browse files Browse the repository at this point in the history
Fix #896
  • Loading branch information
EvanBldy committed Dec 13, 2024
1 parent cf639e8 commit d488aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zou/app/services/projects_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def get_project_fps(project_id):
Return fps set at project level or default fps if it not set.
"""
project = get_project(project_id)
return float(project["fps"] or "24.00")
return float(project["fps"] or "25.00")


def get_task_type_priority_map(project_id, for_entity="Asset"):
Expand Down
2 changes: 1 addition & 1 deletion zou/app/services/shots_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@ def set_frames_from_task_type_preview_files(
project = projects_service.get_project(project_id)
updates = []
for shot, preview_duration in results:
nb_frames = round(preview_duration * int(project["fps"]))
nb_frames = round(preview_duration * float(project["fps"]))
updates.append(
{
"id": shot.id,
Expand Down

0 comments on commit d488aeb

Please sign in to comment.