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
41f6a541
Verified
Commit
41f6a541
authored
Mar 09, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile: parallelize API requests
parent
2290290f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
profile.py
src/handlers/profile.py
+8
-6
No files found.
src/handlers/profile.py
View file @
41f6a541
from
telegrinder
import
Dispatch
,
Message
,
CallbackQuery
,
MESSAGE_FROM_USER
,
WaiterMachine
from
telegrinder.rules
import
Command
,
PayloadEqRule
,
PayloadMarkupRule
,
Text
,
IsPrivate
,
HasText
,
Argument
import
asyncio
from
asyncio
import
sleep
import
re
from
datetime
import
datetime
...
...
@@ -28,15 +29,16 @@ async def profile_handler(m: Message, user: User | None) -> None:
if
user
is
None
:
return
maintainer_data
=
await
altrepo
.
api
.
site
.
maintainer_info
(
user
.
default_branch
,
user
.
maintainer
.
nickname
)
nickname
=
user
.
maintainer
.
nickname
maintainer_data
,
watch
,
bugs_data
=
await
asyncio
.
gather
(
altrepo
.
api
.
site
.
maintainer_info
(
user
.
default_branch
,
nickname
),
altrepo
.
parser
.
packages
.
watch_by_maintainer
(
nickname
,
"by-acl"
),
altrepo
.
api
.
bug
.
bugzilla_by_maintainer
(
nickname
),
)
count_source_pkg
=
maintainer_data
.
information
.
count_source_pkg
roles
=
DB
.
user
.
get_roles
(
m
.
from_user
.
id
)
watch
=
await
altrepo
.
parser
.
packages
.
watch_by_maintainer
(
user
.
maintainer
.
nickname
,
"by-acl"
)
bugs_data
=
await
altrepo
.
api
.
bug
.
bugzilla_by_maintainer
(
user
.
maintainer
.
nickname
)
if
bugs_data
:
all_bugs
=
bugs_data
.
bugs
unresolved_bugs
=
[
...
...
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