feat:完善个人侧写

This commit is contained in:
SengokuCola
2025-06-03 18:13:48 +08:00
parent e888636ea0
commit 4cb3850d0c
7 changed files with 107 additions and 59 deletions

View File

@@ -18,7 +18,7 @@ class ImpressionUpdateTask(AsyncTask):
super().__init__(
task_name="impression_update",
wait_before_start=10, # 启动后等待10秒
run_interval=60 # 每1分钟运行一次
run_interval=30 # 每1分钟运行一次
)
async def run(self):
@@ -27,7 +27,7 @@ class ImpressionUpdateTask(AsyncTask):
# 获取最近10分钟的消息
current_time = int(time.time())
start_time = current_time - 3600 # 10分钟前
start_time = current_time - 600 # 10分钟前
logger.debug(f"获取时间范围: {start_time} -> {current_time}")
# 获取所有消息