From 1b205e69f0b0d59032e29596344f0751f59a940a Mon Sep 17 00:00:00 2001 From: Adam <41971533+jcadam14@users.noreply.github.com> Date: Fri, 5 Jan 2024 15:15:22 -0500 Subject: [PATCH] Ran poetry run black . --- src/entities/repos/institutions_repo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entities/repos/institutions_repo.py b/src/entities/repos/institutions_repo.py index af4d46d..5b0318e 100644 --- a/src/entities/repos/institutions_repo.py +++ b/src/entities/repos/institutions_repo.py @@ -78,7 +78,9 @@ async def upsert_institution(session: AsyncSession, fi: FinancialInstitutionDto) # Populate with model objects from SBLInstitutionTypeDao and clear out # the id field since it's just a view if "sbl_institution_type_ids" in fi_data: - sbl_type_stmt = select(SBLInstitutionTypeDao).filter(SBLInstitutionTypeDao.id.in_(fi_data["sbl_institution_type_ids"])) + sbl_type_stmt = select(SBLInstitutionTypeDao).filter( + SBLInstitutionTypeDao.id.in_(fi_data["sbl_institution_type_ids"]) + ) sbl_types = await session.scalars(sbl_type_stmt) fi_data["sbl_institution_types"] = sbl_types.all() del fi_data["sbl_institution_type_ids"]