feat:完善个人侧写
This commit is contained in:
@@ -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}")
|
||||
|
||||
# 获取所有消息
|
||||
|
||||
Reference in New Issue
Block a user