fixing bugs

This commit is contained in:
Cayo Puigdefabregas 2022-05-12 17:25:02 +02:00
parent 763d2d1361
commit 3a2e0bd61a
1 changed files with 2 additions and 2 deletions

View File

@ -29,13 +29,13 @@ class SettingsView(GenericMixView):
) )
self.opt = request.values.get('opt') self.opt = request.values.get('opt')
if self.opt in ['register', 'soft', 'hard']: if self.opt in ['register']:
return self.download() return self.download()
return flask.render_template(self.template_name, **self.context) return flask.render_template(self.template_name, **self.context)
def download(self): def download(self):
url = "https://{}/api/".format(app.config['HOST']) url = "https://{}/api/inventory/".format(app.config['HOST'])
self.wbContext = { self.wbContext = {
'token': self.get_token(), 'token': self.get_token(),
'url': url, 'url': url,