Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
altlinux-packages-bot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Unitsaev
altlinux-packages-bot
Commits
0e32940e
Verified
Commit
0e32940e
authored
Jul 22, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handlers: fix cb answer
parent
bfc7155f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
news.py
src/handlers/news.py
+3
-0
profile.py
src/handlers/profile.py
+4
-0
No files found.
src/handlers/news.py
View file @
0e32940e
...
...
@@ -33,6 +33,9 @@ async def news_handler(
await
m
.
ctx_api
.
send_message
(
chat_id
=
m
.
from_user
.
id
,
text
=
text
,
reply_markup
=
news_keyboards
.
news_type_kb
)
if
isinstance
(
m
,
CallbackQuery
):
await
m
.
answer
()
if
news_type
==
"bugs"
:
bugs_data
=
await
altrepo
.
parser
.
news
.
bugs
()
...
...
src/handlers/profile.py
View file @
0e32940e
...
...
@@ -51,6 +51,7 @@ async def callback_confirm_handler(cb: CallbackQuery) -> None:
text
=
"Настройки"
,
reply_markup
=
profile_keyboards
.
profile_settings_kb
)
await
cb
.
answer
()
@dp.callback_query
(
PayloadEqRule
(
"profile/settings/maintainer"
))
async
def
callback_confirm_handler
(
cb
:
CallbackQuery
)
->
None
:
...
...
@@ -58,6 +59,7 @@ async def callback_confirm_handler(cb: CallbackQuery) -> None:
chat_id
=
cb
.
from_user
.
id
,
text
=
"Введите никнейм сопровождающего:"
,
)
await
cb
.
answer
()
api_data
=
await
altrepo
.
api
.
site
.
all_maintainers
(
"sisyphus"
)
while
True
:
...
...
@@ -87,6 +89,7 @@ async def callback_confirm_handler(cb: CallbackQuery) -> None:
text
=
"Выберите репозиторий"
,
message_id
=
cb
.
message_id
.
unwrap
()
)
await
cb
.
answer
()
await
cb
.
ctx_api
.
edit_message_reply_markup
(
chat_id
=
cb
.
from_user
.
id
,
reply_markup
=
profile_keyboards
.
profile_settings_branch_kb
(),
...
...
@@ -100,6 +103,7 @@ async def callback_confirm_handler(cb: CallbackQuery, branch: str) -> None:
text
=
f
"Вы выбрали {branch}"
,
message_id
=
cb
.
message_id
.
unwrap
()
)
await
cb
.
answer
()
DB
.
user
.
change_default_branch
(
cb
.
from_user
.
id
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment