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
2a43bc86
Verified
Commit
2a43bc86
authored
Mar 09, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile: use local DB instead of API for maintainer lookup
parent
65b2033c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
profile.py
src/handlers/profile.py
+3
-3
No files found.
src/handlers/profile.py
View file @
2a43bc86
...
...
@@ -74,17 +74,17 @@ async def callback_confirm_handler(cb: CallbackQuery) -> None:
async
def
callback_confirm_handler
(
cb
:
CallbackQuery
)
->
None
:
await
cb
.
edit_text
(
"Введите никнейм сопровождающего:"
)
api_data
=
await
altrepo
.
api
.
site
.
all_maintainers
(
"sisyphus"
)
while
True
:
msg
,
_
=
await
wm
.
wait
(
MESSAGE_FROM_USER
,
cb
.
from_user
.
id
,
release
=
HasText
())
maintainer
=
msg
.
text
.
unwrap
()
.
lower
()
if
any
(
_m
.
packager_nickname
==
maintainer
for
_m
in
api_data
.
maintainers
):
maintainer_obj
=
DB
.
maintainer
.
get
(
maintainer
)
if
maintainer_obj
:
await
msg
.
delete
()
await
cb
.
edit_text
(
f
"Вы выбрали {maintainer}"
)
DB
.
user
.
change_maintainer
(
cb
.
from_user
.
id
,
maintainer
maintainer
_obj
)
await
sleep
(
3.0
)
await
cb
.
delete
()
...
...
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