From 849d5bd567b2b9544ee4f921d2509563a9714f0e Mon Sep 17 00:00:00 2001 From: piyushK52 Date: Fri, 22 Dec 2023 15:53:26 +0530 Subject: [PATCH] frame movement speed fix --- utils/cache/cache_methods.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/utils/cache/cache_methods.py b/utils/cache/cache_methods.py index 64049079..76f68ea8 100644 --- a/utils/cache/cache_methods.py +++ b/utils/cache/cache_methods.py @@ -308,10 +308,16 @@ def _cache_update_specific_timing(self, *args, **kwargs): timing_func = getattr(cls, '_original_get_timing_from_uuid') timing = timing_func(self, args[0]) if timing and timing.shot.project: - original_func = getattr(cls, '_original_get_timing_list_from_project') - timing_list = original_func(self, timing.shot.project.uuid) - if timing_list and len(timing_list): - StCache.add_all(timing_list, CacheKey.TIMING_DETAILS.value) + # original_func = getattr(cls, '_original_get_timing_list_from_project') + # timing_list = original_func(self, timing.shot.project.uuid) + # if timing_list and len(timing_list): + # StCache.add_all(timing_list, CacheKey.TIMING_DETAILS.value) + + # updating shot list + original_func = getattr(cls, '_original_get_shot_list') + shot_list = original_func(self, timing.shot.project.uuid) + if shot_list: + StCache.add_all(shot_list, CacheKey.SHOT.value) setattr(cls, '_original_update_specific_timing', cls.update_specific_timing) setattr(cls, "update_specific_timing", _cache_update_specific_timing)