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
950d64a6
Verified
Commit
950d64a6
authored
Apr 15, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tasks: skip deleted subtasks in notifications
parent
82dd51f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
task_events.py
src/services/task_events.py
+5
-5
No files found.
src/services/task_events.py
View file @
950d64a6
...
...
@@ -19,16 +19,16 @@ ACL_NOTIFY_STATES = {
def
_format_subtasks
(
subtasks
:
dict
)
->
str
:
if
not
subtasks
:
active
=
{
num
:
sub
for
num
,
sub
in
subtasks
.
items
()
if
sub
.
pkgname
}
if
not
active
:
return
""
max_num_len
=
max
(
len
(
num
)
for
num
in
subtasks
)
max_num_len
=
max
(
len
(
num
)
for
num
in
active
)
lines
=
[]
for
num
,
sub
in
subtasks
.
items
():
for
num
,
sub
in
active
.
items
():
padded
=
num
+
" "
*
(
max_num_len
-
len
(
num
))
name
=
sub
.
pkgname
or
"unknown"
version
=
f
"{sub.version}-{sub.release}"
if
sub
.
version
and
sub
.
release
else
""
entry
=
f
"{
name}/{version}"
if
version
else
name
entry
=
f
"{
sub.pkgname}/{version}"
if
version
else
sub
.
pkg
name
lines
.
append
(
f
"{HTMLFormatter(code_inline(padded))} | {entry}"
)
return
"
\n
"
.
join
(
lines
)
...
...
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