From fed754f03a2a355d94e81269edf89e5b879bc191 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 22 Sep 2023 11:42:34 +0800 Subject: [PATCH] fix memory --- app/chain/tmdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/chain/tmdb.py b/app/chain/tmdb.py index b991eae9..28b7d9c5 100644 --- a/app/chain/tmdb.py +++ b/app/chain/tmdb.py @@ -6,9 +6,10 @@ from cachetools import cached, TTLCache from app import schemas from app.chain import ChainBase from app.schemas import MediaType +from app.utils.singleton import Singleton -class TmdbChain(ChainBase): +class TmdbChain(ChainBase, metaclass=Singleton): """ TheMovieDB处理链 """