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
65b2033c
Verified
Commit
65b2033c
authored
Mar 09, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: remove debug prints and unused import
parent
a50bfbe4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
packages.py
src/altrepo/parser/news/packages.py
+0
-1
admin.py
src/handlers/admin.py
+0
-2
news.py
src/handlers/news.py
+1
-2
No files found.
src/altrepo/parser/news/packages.py
View file @
65b2033c
...
@@ -5,7 +5,6 @@ import io
...
@@ -5,7 +5,6 @@ import io
import
gzip
import
gzip
from
..
import
models
from
..
import
models
from
pprint
import
pprint
async
def
packages_parser
(
html
:
str
,
url
:
str
):
async
def
packages_parser
(
html
:
str
,
url
:
str
):
soup
=
BeautifulSoup
(
html
,
"html.parser"
)
soup
=
BeautifulSoup
(
html
,
"html.parser"
)
...
...
src/handlers/admin.py
View file @
65b2033c
...
@@ -94,9 +94,7 @@ async def alrtrepo_users(m: Message, user_id: int, role: str):
...
@@ -94,9 +94,7 @@ async def alrtrepo_users(m: Message, user_id: int, role: str):
if
not
user_id
or
not
role
:
if
not
user_id
or
not
role
:
return
return
print
(
1
)
if
DB
.
user
.
remove_role
(
user_id
,
role
):
if
DB
.
user
.
remove_role
(
user_id
,
role
):
print
(
2
)
await
m
.
answer
(
"Роль удалена"
)
await
m
.
answer
(
"Роль удалена"
)
await
tg_api
.
send_message
(
await
tg_api
.
send_message
(
...
...
src/handlers/news.py
View file @
65b2033c
...
@@ -86,9 +86,8 @@ async def news_handler(
...
@@ -86,9 +86,8 @@ async def news_handler(
chat_id
=
m
.
from_user
.
id
,
text
=
"Перевод не удался :("
chat_id
=
m
.
from_user
.
id
,
text
=
"Перевод не удался :("
)
)
return
return
print
(
len
(
added
))
for
msg
in
added
:
for
msg
in
added
:
await
m
.
ctx_api
.
send_message
(
await
m
.
ctx_api
.
send_message
(
chat_id
=
m
.
from_user
.
id
,
text
=
f
"{msg}"
chat_id
=
m
.
from_user
.
id
,
text
=
f
"{msg}"
)
)
...
...
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