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
373e8362
Verified
Commit
373e8362
authored
Jul 27, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all modules: update format
parent
c2d5c196
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
9 deletions
+17
-9
bugs.py
src/handlers/bugs.py
+2
-1
ftbfs.py
src/handlers/ftbfs.py
+3
-2
profile.py
src/handlers/profile.py
+2
-2
search.py
src/handlers/search.py
+2
-1
statistics.py
src/handlers/statistics.py
+2
-2
watch.py
src/handlers/watch.py
+2
-1
utils.py
src/services/utils.py
+4
-0
No files found.
src/handlers/bugs.py
View file @
373e8362
...
...
@@ -7,6 +7,7 @@ from altrepo import altrepo
from
database.models
import
User
from
database.func
import
DB
from
data.keyboards
import
bugs_keyboards
from
services.utils
import
_bold
from
config
import
BUGS_URL
...
...
@@ -42,7 +43,7 @@ async def bugs_handler(m: Message, user: User | None, maintainer: str | None = N
)
return
bugs_message
=
"Ошибки:
\n\n
"
bugs_message
=
_bold
(
"Ошибки:
\n\n
"
)
for
i
,
bug
in
enumerate
(
unresolved_bugs
):
if
i
==
20
:
...
...
src/handlers/ftbfs.py
View file @
373e8362
...
...
@@ -5,6 +5,7 @@ from altrepo import altrepo
from
database.models
import
User
from
database.func
import
DB
from
services.utils
import
_bold
dp
=
Dispatch
()
...
...
@@ -34,10 +35,10 @@ async def ftbfs_handler(m: Message, user: User | None, _maintainer: str | None =
package
for
package
in
ftbfs_data
if
maintainer
in
package
.
maintainers
]
if
not
len
(
maintainer_ftbfs
):
await
m
.
answer
(
"Нет
не пересобирающихся пакетов
"
)
await
m
.
answer
(
"Нет
ошибок пересборки
"
)
return
ftbfs_message
=
"Ошибки пересборки:
\n\n
"
ftbfs_message
=
_bold
(
"Ошибки пересборки:
\n\n
"
)
for
package
in
maintainer_ftbfs
:
ftbfs_message
+=
f
"{package.name} | {package.ftbfs_weeks} | {"
,
".join(package.maintainers)}
\n
"
...
...
src/handlers/profile.py
View file @
373e8362
...
...
@@ -9,7 +9,7 @@ from data.keyboards import profile_keyboards
from
altrepo
import
altrepo
from
services.menu
import
send_menu
from
services.utils
import
_bold
from
database.models
import
User
dp
=
Dispatch
()
...
...
@@ -40,7 +40,7 @@ async def profile_handler(m: Message, user: User | None) -> None:
unresolved_bugs
=
[]
await
m
.
answer
(
"Профиль:
\n\n
"
f
"{_bold("
Профиль
:
\
n
\
n
")}
"
f
"Сопровождающий: {user.maintainer.name_ru or user.maintainer.name} ({user.maintainer.nickname})
\n
"
f
"Исходные пакеты: {count_source_pkg}
\n
"
f
"Устаревшие пакеты: {len(watch)}
\n
"
...
...
src/handlers/search.py
View file @
373e8362
...
...
@@ -4,6 +4,7 @@ from telegrinder.tools.formatting import HTMLFormatter, link, bold
from
aiohttp
import
ClientResponseError
from
services.utils
import
_bold
from
database.models
import
User
from
collections
import
defaultdict
...
...
@@ -30,7 +31,7 @@ async def search_file_handler(m: Message, user: User | None, file_name: str, bra
await
m
.
answer
(
"Ничего не найдено."
)
return
search_file_message
=
"Пакеты:
\n\n
"
search_file_message
=
_bold
(
"Пакеты:
\n\n
"
)
for
package
in
search_file_data
.
packages
:
search_file_message
+=
f
"{package.arch} | {package.name} | {package.version}-{package.release}
\n
"
...
...
src/handlers/statistics.py
View file @
373e8362
...
...
@@ -2,11 +2,11 @@ from telegrinder import MESSAGE_FROM_USER, Dispatch, Message, WaiterMachine, Cal
from
telegrinder.rules
import
Command
,
Text
,
IsPrivate
,
Argument
from
datetime
import
datetime
import
locale
from
altrepo
import
altrepo
from
database.models
import
User
from
services.utils
import
_bold
dp
=
Dispatch
()
wm
=
WaiterMachine
(
dp
)
...
...
@@ -39,7 +39,7 @@ async def statistics_handler(m: Message, user: User | None, branch: str | None =
else
:
branch
=
statistics_data
.
branch
statistics_message
=
f
"{branch.capitalize()} ({statistics_date})
\n\n
"
statistics_message
=
_bold
(
f
"{branch.capitalize()} ({statistics_date})
\n\n
"
)
for
packages
in
statistics_data
.
packages_count
:
statistics_message
+=
f
"Архитектура: {packages.arch} ({packages.component})
\n
"
...
...
src/handlers/watch.py
View file @
373e8362
...
...
@@ -7,6 +7,7 @@ from altrepo import altrepo
from
database.models
import
User
from
database.func
import
DB
from
data.keyboards
import
watch_keyboards
from
services.utils
import
_bold
dp
=
Dispatch
()
...
...
@@ -40,7 +41,7 @@ async def watch_test_handler(
await
m
.
answer
(
"Нет устаревших пакетов"
)
return
watch_message
=
"Отслеживание:
\n\n
"
watch_message
=
_bold
(
"Отслеживание:
\n\n
"
)
packages
=
{}
for
package
in
watch_data
:
...
...
src/services/utils.py
View file @
373e8362
from
telegrinder.tools.formatting
import
HTMLFormatter
,
bold
import
asyncio
from
database.func
import
DB
...
...
@@ -49,3 +50,6 @@ async def translate_maintainer(nick):
def
chunk_list
(
lst
,
size
):
return
[
lst
[
i
:
i
+
size
]
for
i
in
range
(
0
,
len
(
lst
),
size
)]
def
_bold
(
text
:
str
):
return
HTMLFormatter
(
bold
(
text
))
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