watch module: fix acl

parent c7ae622d
......@@ -7,7 +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, is_valid_str
from services.utils import _bold
dp = Dispatch()
......@@ -34,7 +34,7 @@ async def watch_test_handler(
else:
return
acl = acl if is_valid_str(acl) else "by-acl"
acl = acl or "by-acl"
watch_data = await altrepo.parser.packages.watch_by_maintainer(maintainer, acl)
if not len(watch_data):
......
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