ftbfs module: fix groups

parent 7d695544
......@@ -18,8 +18,8 @@ async def ftbfs_handler(m: Message, user: User | None, _maintainer: str | None =
group_data = await altrepo.api.acl.groups("sisyphus")
_maintainer = DB.maintainer.get(_maintainer)
if not _maintainer and not any(
_g.group == _maintainer for _g in group_data.groups
) and not _maintainer in ["@nobody"]:
_g.group == maintainer for _g in group_data.groups
) and not maintainer in ["@nobody"]:
await m.answer(f"Сопровождающий или группа {maintainer} не найдены.")
return
......
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