Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

423 max abstract #478

Merged
merged 8 commits into from
Apr 23, 2024
Merged

423 max abstract #478

merged 8 commits into from
Apr 23, 2024

Conversation

TheAnton1
Copy link
Contributor

No description provided.


def late_init(self):
self.headers = self.file.make_headers(self.file_type['report_type'])
self.max_size = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Размер стоит вынести в аргументы конструктора (= критерия)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправил

Comment on lines 29 to 30
referat_size = abstract_page - referat_page
abstract_size = main_page - abstract_page
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

напомните, что хранится по ключу в self.headers - просто страницы?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, номера страниц, с которых начинается раздел

Comment on lines 31 to 34
if referat_size > self.max_size:
return answer(False,
f"<br><br>Размер раздела \"Реферат\" равен {referat_size} страницы, должен быть {self.max_size}")
if abstract_size > self.max_size:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Возможно стоит проверять их в один момент (в плане фидбека, чтобы не было "получил уведомление о реферате -> исправил реферат -> только потом узнал, что ещё и Abstract неверное")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправил

@github-actions github-actions bot added the has conflicts if new merge has conflicts label Apr 9, 2024
@github-actions github-actions bot removed the has conflicts if new merge has conflicts label Apr 23, 2024
@HadronCollider HadronCollider merged commit 0b6b299 into master Apr 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants