File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
services/processor/processor Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def calculate_end_frame(
33
33
if frame_start is None and hasattr (folder .attrib , "frameStart" ):
34
34
frame_start = folder .attrib .frameStart
35
35
if frame_start is not None :
36
- return int (frame_start ) + int (entity_dict ["nb_frames" ])
36
+ return int (frame_start ) + int (entity_dict ["nb_frames" ]) - 1
37
37
38
38
39
39
def create_name_and_label (kitsu_name : str ) -> dict [str , str ]:
Original file line number Diff line number Diff line change @@ -315,8 +315,14 @@ def start_processing(self):
315
315
if startup :
316
316
logging .info ("Running sync for all paired projects" )
317
317
for pair in self .pairing_list :
318
- if pair .get ("kitsuProjectId" ) and pair .get ("ayonProjectName" ):
319
- project_full_sync (self , pair ["kitsuProjectId" ], pair ["ayonProjectName" ])
318
+ project_id = pair .get ("kitsuProjectId" )
319
+ project_name = pair .get ("ayonProjectName" )
320
+ if project_id and project_name :
321
+ project_full_sync (
322
+ self ,
323
+ project_id ,
324
+ project_name ,
325
+ )
320
326
startup = False
321
327
322
328
# Check for a new sync job
You can’t perform that action at this time.
0 commit comments