瀏覽代碼

fix: allow the name and icon of the web app to be set independently of that of the bot itself (#5225)

tags/0.6.11
kurokobo 1 年之前
父節點
當前提交
ef6034abfd
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增7 行删除
  1. 0
    7
      api/controllers/console/app/site.py

+ 0
- 7
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

Loading…
取消
儲存