chore: ruff lint

This commit is contained in:
psychedelicious
2023-11-14 07:57:07 +11:00
parent 4465f97cdf
commit bc64cde6f9
3 changed files with 13 additions and 13 deletions

View File

@ -42,7 +42,7 @@ async def list_model_records(
"""Get a list of models."""
record_store = ApiDependencies.invoker.services.model_records
if base_models and len(base_models) > 0:
models_raw = list()
models_raw = []
for base_model in base_models:
models_raw.extend(
[x.model_dump() for x in record_store.search_by_attr(base_model=base_model, model_type=model_type)]