test(api): fix linting errors
This commit is contained in:
parent
b4827112a2
commit
38bff1d4df
|
@ -78,7 +78,7 @@ class Preference(models.Model):
|
||||||
entries = dict(cls.site.values_list("key", "value"))
|
entries = dict(cls.site.values_list("key", "value"))
|
||||||
return StreamPreferences(
|
return StreamPreferences(
|
||||||
input_fade_transition=float(entries.get("default_transition_fade") or 0.0),
|
input_fade_transition=float(entries.get("default_transition_fade") or 0.0),
|
||||||
message_format=int(entries.get("stream_label_format") or 0),
|
message_format=MessageFormatKind(entries.get("stream_label_format") or 0),
|
||||||
message_offline=entries.get("off_air_meta") or "Offline",
|
message_offline=entries.get("off_air_meta") or "Offline",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ from ._schema import Config
|
||||||
LIBRETIME_LOG_FILEPATH = getenv("LIBRETIME_LOG_FILEPATH")
|
LIBRETIME_LOG_FILEPATH = getenv("LIBRETIME_LOG_FILEPATH")
|
||||||
LIBRETIME_CONFIG_FILEPATH = getenv("LIBRETIME_CONFIG_FILEPATH")
|
LIBRETIME_CONFIG_FILEPATH = getenv("LIBRETIME_CONFIG_FILEPATH")
|
||||||
|
|
||||||
CONFIG = Config(LIBRETIME_CONFIG_FILEPATH)
|
CONFIG = Config(LIBRETIME_CONFIG_FILEPATH) # type: ignore[arg-type, misc]
|
||||||
|
|
||||||
SECRET_KEY = CONFIG.general.api_key
|
SECRET_KEY = CONFIG.general.api_key
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue