cleanup: remove debug prints and unused import

parent a50bfbe4
...@@ -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")
......
...@@ -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(
......
...@@ -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}"
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment