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
086002bc
Verified
Commit
086002bc
authored
Mar 09, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile: show branches and FTBFS count
parent
6bf454bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
profile.py
src/handlers/profile.py
+11
-1
No files found.
src/handlers/profile.py
View file @
086002bc
...
...
@@ -31,13 +31,21 @@ async def profile_handler(m: Message, user: User | None) -> None:
nickname
=
user
.
maintainer
.
nickname
maintainer_data
,
watch
,
bugs_data
=
await
asyncio
.
gather
(
maintainer_data
,
watch
,
bugs_data
,
branches_data
,
ftbfs_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
),
altrepo
.
api
.
site
.
maintainer_branches
(
nickname
),
altrepo
.
parser
.
packages
.
ftbfs
(),
)
count_source_pkg
=
maintainer_data
.
information
.
count_source_pkg
branches
=
", "
.
join
(
b
.
branch
for
b
in
branches_data
.
branches
)
ftbfs_count
=
len
([
p
for
p
in
ftbfs_data
if
nickname
in
p
.
maintainers
])
roles
=
DB
.
user
.
get_roles
(
m
.
from_user
.
id
)
if
bugs_data
:
all_bugs
=
bugs_data
.
bugs
...
...
@@ -50,8 +58,10 @@ async def profile_handler(m: Message, user: User | None) -> None:
await
m
.
answer
(
f
"{_bold("
Профиль
:
\
n
\
n
")}"
f
"Сопровождающий: {user.maintainer.name_ru or user.maintainer.name} ({user.maintainer.nickname})
\n
"
f
"Ветки: {branches}
\n
"
f
"Исходные пакеты: {count_source_pkg}
\n
"
f
"Устаревшие пакеты: {len(watch)}
\n
"
f
"Ошибки пересборки: {ftbfs_count}
\n
"
"
\n
"
f
"Всего багов: {len(all_bugs)}
\n
"
f
"Открытых багов: {len(unresolved_bugs)}
\n\n
"
...
...
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