Conversation
this doesn't fix any thing but ensures that we get rid of error once and for all
hf-kklein
left a comment
There was a problem hiding this comment.
Ehrlich gesagt hab' ichs nicht selbst gedebuggt, aber wenn es den Test besteht, und sonst nichts kaputt macht dann passt das 👍
Ein paar anmerkungen hatte ich noch. Kannst du die noch einbauen?
| As above, the results are written into rows, sub_rows and multi_step_instructions. Those will be modified. | ||
| """ | ||
| use_cases: List[str] = [] | ||
| # first init |
There was a problem hiding this comment.
| # first init |
| enhanced_table_row.cells[len(use_cases) + self._column_index_check_result] | ||
| ) | ||
|
|
||
| if row_index == len(self._enhance_list_view(table=table, row_offset=row_offset)) - 1: |
There was a problem hiding this comment.
| if row_index == len(self._enhance_list_view(table=table, row_offset=row_offset)) - 1: | |
| this_is_the_last_row = row_index == len(self._enhance_list_view(table=table, row_offset=row_offset)) - 1 | |
| if this_is_the_last_row: |
das ist mehr readable.
| """ | ||
| use_cases: List[str] = [] | ||
| # first init | ||
| enhanced_table_row = self._enhance_list_view(table=table, row_offset=row_offset)[row_index] |
There was a problem hiding this comment.
magst du das self._enhance_list_view(table=table, row_offset=row_offset) noch in eine variable mit lesbasrem namen verpacken?
du verwendest es ja an 4 stellen im nachfolgenden.
| def _handle_single_table_star_exception( | ||
| self, | ||
| table: Table, | ||
| multi_step_instructions: List[MultiStepInstruction], |
There was a problem hiding this comment.
| multi_step_instructions: List[MultiStepInstruction], | |
| multi_step_instructions: list[MultiStepInstruction], |
| table: Table, | ||
| multi_step_instructions: List[MultiStepInstruction], | ||
| row_offset: int, | ||
| rows: List[EbdTableRow], |
There was a problem hiding this comment.
| rows: List[EbdTableRow], | |
| rows: list[EbdTableRow], |
| with several instructions. Those instructions will be split in individual steps. | ||
| As above, the results are written into rows, sub_rows and multi_step_instructions. Those will be modified. | ||
| """ | ||
| use_cases: List[str] = [] |
There was a problem hiding this comment.
| use_cases: List[str] = [] | |
| use_cases: list[str] = [] |
| star_case_note = enhanced_table_row.cells[len(use_cases) + self._column_index_note].text.strip() or None | ||
| while row_index < len(self._enhance_list_view(table=table, row_offset=row_offset)): | ||
| enhanced_table_row = self._enhance_list_view(table=table, row_offset=row_offset)[row_index] | ||
| step_number = str(int(rows[-1].step_number) + 1) |
There was a problem hiding this comment.
| step_number = str(int(rows[-1].step_number) + 1) | |
| step_number = str(int(last(rows).step_number) + 1) |
find ich lesbarer. ist aber nicht wichtig
"*" in step_number
No description provided.