We don't have to return file as it's in session right?
(file, video_parent_file)
| 1004 | |
| 1005 | @staticmethod |
| 1006 | def new_file_new_frame(file, video_parent_file): |
| 1007 | """ |
| 1008 | We don't have to return file as it's in session right? |
| 1009 | |
| 1010 | """ |
| 1011 | |
| 1012 | if file.type == "frame": |
| 1013 | |
| 1014 | if not video_parent_file: |
| 1015 | return |
| 1016 | |
| 1017 | # start_time = time.time() |
| 1018 | video = video_parent_file.video |
| 1019 | |
| 1020 | if video: |
| 1021 | # A new file would never have this created prior... |
| 1022 | file.global_frame_number = video.calculate_global_reference_frame( |
| 1023 | frame_number = file.frame_number) |
| 1024 | else: |
| 1025 | print("Error, no .Video while trying to create new File") |
| 1026 | |
| 1027 | # print("global frame cal", (time.time() - start_time) * 1000) |
| 1028 |
no test coverage detected