Skip to content

Commit

Permalink
table for any simple protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Dec 18, 2024
1 parent cafefde commit f5b6a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions results/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ def table_part_result(value, width_max_table=None):
if isinstance(row_data, list):
result = '<br/>'.join(row_data)
elif isinstance(row_data, dict):
temp_data = []
if row_data.get("code", None):
result_mkb_code = f"{row_data.get('code')}"
if row_data.get("title", None):
Expand All @@ -1040,9 +1041,8 @@ def table_part_result(value, width_max_table=None):
result = f"{result} ({position})"
except:
result = value_raw
if is_diag_table:
if is_diag_table and result:
temp_data.append([Paragraph(f"<u>{result}</u>", style), Paragraph(f"код по МКБ {space_symbol * 3}<u>{result_mkb_code}</u>", style)])
temp_data.append([Paragraph("", style), Paragraph("", style)])
else:
temp_data.append(Paragraph(f"{result}", style))
opinion.append(temp_data)
Expand Down

0 comments on commit f5b6a44

Please sign in to comment.