nitpicks from vlad

This commit is contained in:
dni ⚡
2022-12-05 12:28:26 +01:00
parent 04b67c3551
commit b4126e664b
2 changed files with 31 additions and 25 deletions
+6 -6
View File
@@ -19,8 +19,6 @@ from .helpers import (
url_for_vendored,
)
path = settings.lnbits_path
@click.command("migrate")
def db_migrate():
@@ -38,15 +36,17 @@ def transpile_scss():
warnings.simplefilter("ignore")
from scss.compiler import compile_string # type: ignore
with open(os.path.join(path, "static/scss/base.scss")) as scss:
with open(os.path.join(path, "static/css/base.css"), "w") as css:
with open(os.path.join(settings.lnbits_path, "static/scss/base.scss")) as scss:
with open(
os.path.join(settings.lnbits_path, "static/css/base.css"), "w"
) as css:
css.write(compile_string(scss.read()))
def bundle_vendored():
for getfiles, outputpath in [
(get_js_vendored, os.path.join(path, "static/bundle.js")),
(get_css_vendored, os.path.join(path, "static/bundle.css")),
(get_js_vendored, os.path.join(settings.lnbits_path, "static/bundle.js")),
(get_css_vendored, os.path.join(settings.lnbits_path, "static/bundle.css")),
]:
output = ""
for path in getfiles():