Skip to content

Commit 6e691f8

Browse files
committed
fix№2
1 parent 958247c commit 6e691f8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/main/checks/report_checks/literature_references.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def search_references(self, start_par):
116116
prev_ref = 0
117117
ref_sequence = []
118118
array_of_references = set()
119-
text = ''
120119
for i in range(0, start_par):
121120
paragraph_text = self.file.paragraphs[i] if isinstance(self.file.paragraphs[i], str) else self.file.paragraphs[i].paragraph_text
122121
match = re.search(r'Таблица ([.\d]+)', paragraph_text)
@@ -126,9 +125,7 @@ def search_references(self, start_par):
126125
table_text = self.get_text_in_table(index_table)
127126

128127
paragraph_text += table_text
129-
text += paragraph_text
130-
131-
prev_ref = self.search_references_in_text(text, prev_ref, array_of_references, ref_sequence)
128+
prev_ref = self.search_references_in_text(paragraph_text, prev_ref, array_of_references, ref_sequence)
132129

133130
if ref_sequence:
134131
if ref_sequence[0][1] == '0':

0 commit comments

Comments
 (0)