Skip to content

Commit

Permalink
lint: smaller line size
Browse files Browse the repository at this point in the history
  • Loading branch information
TanookiVerde committed Jan 19, 2024
1 parent d6a6477 commit e0118bc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions api/app/routers/entities_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ async def create_standardized_patientrecords(
content=f"Raw Source {record['raw_source_id']}: {e}"
)

if raw_source.patient_cpf != record['patient_cpf']:
record_cpf = record['patient_cpf']
source_cpf = raw_source.patient_cpf
if record_cpf != source_cpf:
return HTMLResponse(
status_code=400,
content=f"Raw Source: CPF mismatch {raw_source.patient_cpf} != {record['patient_cpf']}"
content=f"Raw Source: CPF mismatch {source_cpf} != {record_cpf}"
)

try:
Expand Down Expand Up @@ -133,10 +135,12 @@ async def create_standardized_patientconditions(
content=f"Raw Source {condition['raw_source_id']}: {e}"
)

if raw_source.patient_cpf != condition['patient_cpf']:
condition_cpf = condition['patient_cpf']
source_cpf = raw_source.patient_cpf
if condition_cpf != source_cpf:
return HTMLResponse(
status_code=400,
content=f"Raw Source: CPF mismatch {raw_source.patient_cpf} != {condition['patient_cpf']}"
content=f"Raw Source: CPF mismatch {source_cpf} != {condition_cpf}"
)

condition['raw_source'] = raw_source
Expand Down

0 comments on commit e0118bc

Please sign in to comment.