Skip to content

Commit fd66299

Browse files
committed
✏️ 修复一些拼写和格式
1 parent 8d64d9c commit fd66299

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nonebot_bison/platform/arknights.py

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def title_escape(text: str) -> str:
107107
else:
108108
# 只有一张图片
109109
title = title_escape(data.title)
110+
110111
return Post(
111112
self,
112113
content=data.content,

nonebot_bison/platform/ceobecanteen/cache.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class CeobeCache:
3232
# 不在 __init__ 中初始化,让多个实例共享一个缓存
3333
_cache = SimpleCache()
3434

35-
def __init__(self, litetime: timedelta, store_key: str | None = None):
35+
def __init__(self, lifetime: timedelta, store_key: str | None = None):
3636
self.store_key = store_key
37-
self.litetime = litetime
37+
self.lifetime = lifetime
3838

3939
def __set_name__(self, owner, name: str):
4040
self.key = self.store_key or name
@@ -43,7 +43,7 @@ def __get__(self, instance, owner):
4343
return self._cache.get(self.key)
4444

4545
def __set__(self, instance, value):
46-
self._cache[self.key, self.litetime] = value
46+
self._cache[self.key, self.lifetime] = value
4747

4848

4949
class CeobeDataSourceCache:

0 commit comments

Comments
 (0)