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

Даже если is_main в расширенном режиме бота не устанавливалась, в БД создаётся значение False #23

Open
Gim6626 opened this issue Nov 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Gim6626
Copy link
Collaborator

Gim6626 commented Nov 12, 2021

Проблемная я так понимаю строка 208 в fossnewsbot/handlers.py:

        elif cmd == Command.IS_MAIN:
-->            fngs.update_attempt(user, news_id, 'estimated_is_main', result == Result.YES)
            if result == Result.YES:
                text += append_result(config.marker.is_main, _('Main'))
            else:
                text += append_result(config.marker.short, _('Short'))
            if config.features.types or user.is_editor():
                markup = keyboards.types(news_id, fngs.types, user.lang)
            else:
                markup = keyboards.next_news()

Она сразу обновляет запись, не разобрав ответ.

@Gim6626 Gim6626 changed the title Даже если is_main в расширенном режиме бота не устанавливалась, в БД создаётся Даже если is_main в расширенном режиме бота не устанавливалась, в БД создаётся значение False Nov 12, 2021
@Gim6626 Gim6626 added the bug Something isn't working label Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant