From f14c8d8d8629bcd368b3d37affe5b145b80363fe Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Mon, 26 May 2025 18:09:30 +0800 Subject: [PATCH] resolve conflicts --- api/fields/app_fields.py | 1 + api/models/model.py | 2 +- web/app/(commonLayout)/apps/AppCard.tsx | 2 +- web/types/app.ts | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/api/fields/app_fields.py b/api/fields/app_fields.py index de61094415..500ca47c7e 100644 --- a/api/fields/app_fields.py +++ b/api/fields/app_fields.py @@ -101,6 +101,7 @@ app_partial_fields = { "tags": fields.List(fields.Nested(tag_fields)), "access_mode": fields.String, "create_user_name": fields.String, + "author_name": fields.String, } diff --git a/api/models/model.py b/api/models/model.py index 802157b8cf..92a5c0d121 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -295,7 +295,7 @@ class App(Base): return tags or [] @property - def create_user_name(self): + def author_name(self): if self.created_by: account = db.session.query(Account).filter(Account.id == self.created_by).first() if account: diff --git a/web/app/(commonLayout)/apps/AppCard.tsx b/web/app/(commonLayout)/apps/AppCard.tsx index 7829df70bf..deac127a40 100644 --- a/web/app/(commonLayout)/apps/AppCard.tsx +++ b/web/app/(commonLayout)/apps/AppCard.tsx @@ -319,7 +319,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {