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
089d32f1
Verified
Commit
089d32f1
authored
Jun 25, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
news: fix package source links
parent
2871ade1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
packages.py
src/services/news/packages.py
+6
-3
No files found.
src/services/news/packages.py
View file @
089d32f1
...
...
@@ -11,6 +11,7 @@ from services.utils import translate_package, translate_maintainer, chunk_list,
async
def
format_packages
(
packages
:
PackagesModel
,
news_type
:
str
,
translate
:
bool
=
False
,
date_range
:
str
|
None
=
None
):
repo
=
PACKAGES_URL
.
format
(
repo
=
news_type
)
news_tag
=
news_type
.
capitalize
()
added_messages
=
[]
removed_message
=
""
updated_messages
=
[]
...
...
@@ -27,14 +28,16 @@ async def format_packages(packages: PackagesModel, news_type: str, translate: bo
if
date_range
:
source
=
f
"sisyphus-cybertalk за {date_range}"
else
:
source
=
HTMLFormatter
(
link
(
packages
.
url
,
text
=
"sisyphus-cybertalk"
)
)
source
=
link
(
packages
.
url
,
text
=
"sisyphus-cybertalk"
)
info_message
=
(
f
"Всего исходных пакетов: {packages.total}
\n\n
"
f
"Источник: {source}"
"Источник: "
+
source
+
"
\n\n
"
"Сформировано при помощи "
+
HTMLFormatter
(
bold
(
link
(
"https://t.me/altlinux_packages_bot"
,
text
=
"ALT Packages Bot"
)))
bold
(
link
(
"https://t.me/altlinux_packages_bot"
,
text
=
"ALT Packages Bot"
))
+
"
\n\n
"
f
"#News{news_tag}"
)
return
added_messages
,
removed_message
,
updated_messages
,
info_message
...
...
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