config.py version !!help in Settings view help fix

This commit is contained in:
saifullah-N
2022-12-23 00:53:42 +05:30
parent fde5ed3ac7
commit 0645cbb2ab
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class Config(object):
self.values = {}
try:
self.version = pkg_resources.require('bbctrl')[0].version
self.version = "1.1.3"
# Load config template
with open(get_resource('http/config-template.json'), 'r',

View File

@@ -70,7 +70,7 @@
}
function getTitle(): string {
const help = template.help ? `${template.help}\n` : "";
const help = (!!template.help) ? `${template.help}\n` : "";
return `${help}Default: ${template.default} ${template.unit || ""}`;
}