File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -718,24 +718,19 @@ def clear_model_list_cache(
718718 }
719719 return res
720720
721- def clear_model_details_cache (self ,model_id ):
721+ def clear_model_details_cache (self , model_id ):
722722 """
723723 Allows user to clear model details cache item
724724 Returns
725725 -------
726726 dict with the key used, and True if cache has the key that needs to be deleted.
727727 """
728- res = {}
728+ res = {}
729729 logger .info ("Clearing _service_model_details_cache" )
730730 with self ._cache_lock :
731731 if model_id in self ._service_model_details_cache :
732732 self ._service_model_details_cache .pop (key = model_id )
733- res = {
734- "key" :{
735- "model_id" :model_id
736- },
737- "cache_deleted" :True
738- }
733+ res = {"key" : {"model_id" : model_id }, "cache_deleted" : True }
739734
740735 return res
741736
You can’t perform that action at this time.
0 commit comments