def post(self): data.config.scroll_lryic = bool(self.get_arguments('scroll_lryic')) data.config.enable_rpc = bool(self.get_arguments('enable_rpc')) data.config.use_netease_source = bool(self.get_arguments( 'use_netease_source')) data.save('config') self.render('setting.html', webtitle='Setting', douban_account=data.history.douban, config_set=data.config )
def save_config(self): data.save('history.json')