From acc3d5a2c9039e1618f3f29c1991abfd3f8e9a47 Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Tue, 22 Oct 2024 20:00:18 +0800 Subject: [PATCH] fix bugs --- app/__init__.py | 2 +- app/utils/feishu.py | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 42e14cb..d4519a8 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -218,7 +218,7 @@ def celery_init_app(app: Flask) -> Celery: celery_app.conf.beat_schedule = { "check-activity-help-link": { "task": "app.task.check_activity_help_link", - "schedule": crontab(hour=19, minute=59), + "schedule": crontab(hour=20, minute=02), }, } diff --git a/app/utils/feishu.py b/app/utils/feishu.py index 9f97fa3..8eae73a 100644 --- a/app/utils/feishu.py +++ b/app/utils/feishu.py @@ -310,16 +310,6 @@ def get_messages(client, container_id_type="", container_id="", page_size=50): def send_groud_message(client, receive_id, content:str): - - # 创建client - client = ( - lark.Client.builder() - .app_id("YOUR_APP_ID") - .app_secret("YOUR_APP_SECRET") - .log_level(lark.LogLevel.DEBUG) - .build() - ) - # 构造请求对象 request: CreateMessageRequest = ( CreateMessageRequest.builder()