From def8b730b7cdd36c7f43eb8059d19c6db89d9115 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 7 Feb 2026 14:01:08 +0800 Subject: [PATCH] fix: correct spelling of 'temporary' in SharedPreferences class --- astrbot/core/utils/shared_preferences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/utils/shared_preferences.py b/astrbot/core/utils/shared_preferences.py index 765045513..788d54a47 100644 --- a/astrbot/core/utils/shared_preferences.py +++ b/astrbot/core/utils/shared_preferences.py @@ -23,7 +23,7 @@ class SharedPreferences: ) self.path = json_storage_path self.db_helper = db_helper - self.temorary_cache: dict[str, dict[str, Any]] = defaultdict(dict) + self.temporary_cache: dict[str, dict[str, Any]] = defaultdict(dict) """automatically clear per 24 hours. Might be helpful in some cases XD""" self._sync_loop = asyncio.new_event_loop() @@ -37,7 +37,7 @@ class SharedPreferences: self._scheduler.start() def _clear_temporary_cache(self): - self.temorary_cache.clear() + self.temporary_cache.clear() async def get_async( self,