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(
718
718
}
719
719
return res
720
720
721
- def clear_model_details_cache (self ,model_id ):
721
+ def clear_model_details_cache (self , model_id ):
722
722
"""
723
723
Allows user to clear model details cache item
724
724
Returns
725
725
-------
726
726
dict with the key used, and True if cache has the key that needs to be deleted.
727
727
"""
728
- res = {}
728
+ res = {}
729
729
logger .info ("Clearing _service_model_details_cache" )
730
730
with self ._cache_lock :
731
731
if model_id in self ._service_model_details_cache :
732
732
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 }
739
734
740
735
return res
741
736
You can’t perform that action at this time.
0 commit comments