1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

general cleanup

This commit is contained in:
checktheroads
2020-03-29 20:04:02 -07:00
parent 3488f86e39
commit d2d2c261cc
2 changed files with 2 additions and 7 deletions

View File

@ -116,11 +116,6 @@ class Logo(HyperglassLevel3):
"""
return validate_image(value)
class Config:
"""Override pydantic config."""
fields = {"logo_path": "path"}
class Terms(HyperglassLevel3):
"""Validation model for terms & conditions."""

View File

@ -439,7 +439,7 @@ async def build_frontend( # noqa: C901
import tempfile
from pathlib import Path
from aiofile import AIOFile
import ujson as json
import json
from hyperglass.constants import __version__
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")
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
# build identifier.