mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
general cleanup
This commit is contained in:
@@ -116,11 +116,6 @@ class Logo(HyperglassLevel3):
|
|||||||
"""
|
"""
|
||||||
return validate_image(value)
|
return validate_image(value)
|
||||||
|
|
||||||
class Config:
|
|
||||||
"""Override pydantic config."""
|
|
||||||
|
|
||||||
fields = {"logo_path": "path"}
|
|
||||||
|
|
||||||
|
|
||||||
class Terms(HyperglassLevel3):
|
class Terms(HyperglassLevel3):
|
||||||
"""Validation model for terms & conditions."""
|
"""Validation model for terms & conditions."""
|
||||||
|
@@ -439,7 +439,7 @@ async def build_frontend( # noqa: C901
|
|||||||
import tempfile
|
import tempfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from aiofile import AIOFile
|
from aiofile import AIOFile
|
||||||
import ujson as json
|
import json
|
||||||
from hyperglass.constants import __version__
|
from hyperglass.constants import __version__
|
||||||
|
|
||||||
env_file = Path("/tmp/hyperglass.env.json") # noqa: S108
|
env_file = Path("/tmp/hyperglass.env.json") # noqa: S108
|
||||||
@@ -471,7 +471,7 @@ async def build_frontend( # noqa: C901
|
|||||||
log.debug("Re-initialized node_modules")
|
log.debug("Re-initialized node_modules")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
env_json = json.dumps(env_vars)
|
env_json = json.dumps(env_vars, default=str)
|
||||||
|
|
||||||
# Create SHA256 hash from all parameters passed to UI, use as
|
# Create SHA256 hash from all parameters passed to UI, use as
|
||||||
# build identifier.
|
# build identifier.
|
||||||
|
Reference in New Issue
Block a user