From 8556c3d3e3e2a3c44f081a293c921b2e5b0a3c6d Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Fri, 29 Dec 2023 16:14:49 +0800 Subject: [PATCH] add missing file --- server/model/lark.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 server/model/lark.py diff --git a/server/model/lark.py b/server/model/lark.py new file mode 100644 index 00000000..86e1b092 --- /dev/null +++ b/server/model/lark.py @@ -0,0 +1,11 @@ +from .schema import IMApplication, db + + +def get_bot_by_app_id(app_id): + return ( + db.session.query(IMApplication) + .filter( + IMApplication.app_id == app_id, + ) + .first() + )