Skip to content

Conversation

MarinaProsche
Copy link
Collaborator

Задача:
#532

app/server.py Outdated
Comment on lines 733 to 735
link_for_bugs_report = app.config['LINK_FOR_BUGS_REPORT']
return render_template("intro_page.html", link_for_bugs_report=link_for_bugs_report)
support_mail = app.config['SUPPORT_MAIL']
return render_template("intro_page.html", link_for_bugs_report=link_for_bugs_report, support_mail=support_mail)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Шаблонизатор имеет доступ к конфигу приложения, поэтому эти данные можно не передавать, а получать прямо в "intro_page.html"

https://flask.palletsprojects.com/en/2.3.x/templating/#standard-context

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Исправлено.

@HadronCollider HadronCollider added the ready_for_release Готов для добавления в ближайший релиз label Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready_for_release Готов для добавления в ближайший релиз
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants