Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
ef6034abfd
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 0 přidání a 7 odebrání
  1. 0
    7
      api/controllers/console/app/site.py

+ 0
- 7
api/controllers/console/app/site.py Zobrazit soubor

if value is not None: if value is not None:
setattr(site, attr_name, value) 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() db.session.commit()


return site return site

Načítá se…
Zrušit
Uložit