Skip to content

Commit

Permalink
add labels to checks (+little fixes for max_size)
Browse files Browse the repository at this point in the history
  • Loading branch information
HadronCollider committed Apr 23, 2024
1 parent ac1c9f2 commit 5c2567b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/main/checks/report_checks/find_theme_in_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class FindThemeInReport(BaseReportCriterion):

label = "Проверка упоминания темы в отчете"
description = "Проверка упоминания темы в отчете"
id = 'theme_in_report_check'

Expand Down
8 changes: 4 additions & 4 deletions app/main/checks/report_checks/max_abstract_size_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@


class ReportMaxSizeOfAbstractCheck(BaseReportCriterion):
description = "Максимальный размер раздела Реферат в ВКР"
label = "Максимальный размер раздела Реферат в ВКР"
description = "Максимальный размер раздела Реферат в ВКР (1 стр.)"
id = "max_abstract_size_check"

def __init__(self, file_info):
def __init__(self, file_info, max_size=1):
super().__init__(file_info)
self.headers = []
self.referat_size = 0
self.abstract_size = 0
self.max_size = 0
self.max_size = max_size

def late_init(self):
self.headers = self.file.make_headers(self.file_type['report_type'])
self.max_size = 1
referat_page = 0
abstract_page = 0
main_page = 0
Expand Down

0 comments on commit 5c2567b

Please sign in to comment.