Skip to content

Commit

Permalink
🎨 入群检测代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier committed Nov 14, 2024
1 parent 4c7c223 commit 545f6fd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ async def __handle_add_group(
group: GroupConsole
"""
if group:
await GroupConsole.filter(
group_id=group_id, channel_id__isnull=True
).update(group_flag=1)
group.group_flag = 1
await group.save(update_fields=["group_flag"])
else:
block_plugin = ""
if plugin_list := await PluginInfo.filter(default_status=False).all():
Expand Down

0 comments on commit 545f6fd

Please sign in to comment.