From ef6034abfd131cf9142df5991d4f4c5e742b83a3 Mon Sep 17 00:00:00 2001 From: kurokobo Date: Fri, 14 Jun 2024 23:16:11 +0900 Subject: [PATCH] fix: allow the name and icon of the web app to be set independently of that of the bot itself (#5225) --- api/controllers/console/app/site.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/controllers/console/app/site.py b/api/controllers/console/app/site.py index ee9e0cf9b5..ff832ac5da 100644 --- a/api/controllers/console/app/site.py +++ b/api/controllers/console/app/site.py @@ -65,13 +65,6 @@ class AppSite(Resource): if value is not None: setattr(site, attr_name, value) - if attr_name == 'title': - app_model.name = value - elif attr_name == 'icon': - app_model.icon = value - elif attr_name == 'icon_background': - app_model.icon_background = value - db.session.commit() return site