fix(#190): ruff format auto_confirm и recognition_exchange (I-1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8c7ce7c172
commit
e14f1ab2aa
@ -72,9 +72,7 @@ async def _outcome_fact_fields(
|
|||||||
issues = await statements_repo.issues(session, document.id)
|
issues = await statements_repo.issues(session, document.id)
|
||||||
if document.document_type is DocumentType.OSV:
|
if document.document_type is DocumentType.OSV:
|
||||||
row_count = (
|
row_count = (
|
||||||
await session.execute(
|
await session.execute(select(func.count()).select_from(OsvEntry).where(OsvEntry.document_id == document.id))
|
||||||
select(func.count()).select_from(OsvEntry).where(OsvEntry.document_id == document.id)
|
|
||||||
)
|
|
||||||
).scalar_one()
|
).scalar_one()
|
||||||
osv_warnings = [
|
osv_warnings = [
|
||||||
issue.code
|
issue.code
|
||||||
|
|||||||
@ -249,8 +249,11 @@ async def _failure_dimensions_batch(
|
|||||||
rows = await session.execute(stmt)
|
rows = await session.execute(stmt)
|
||||||
return {
|
return {
|
||||||
file_id: _FailureDimensions(
|
file_id: _FailureDimensions(
|
||||||
legal_entity_id=legal_entity_id, legal_entity_name=legal_entity_name, group_id=group_id,
|
legal_entity_id=legal_entity_id,
|
||||||
group_name=group_name, is_scan=is_scan,
|
legal_entity_name=legal_entity_name,
|
||||||
|
group_id=group_id,
|
||||||
|
group_name=group_name,
|
||||||
|
is_scan=is_scan,
|
||||||
)
|
)
|
||||||
for file_id, is_scan, legal_entity_id, legal_entity_name, group_id, group_name in rows
|
for file_id, is_scan, legal_entity_id, legal_entity_name, group_id, group_name in rows
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user