mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
chore(python): fix ruff warnings
This commit is contained in:
@@ -32,25 +32,13 @@ class GroupTrackingPlugin:
|
|||||||
|
|
||||||
@account_hookimpl
|
@account_hookimpl
|
||||||
def ac_member_added(self, chat, contact, actor, message):
|
def ac_member_added(self, chat, contact, actor, message):
|
||||||
print(
|
print(f"ac_member_added {contact.addr} to chat {chat.id} from {actor or message.get_sender_contact().addr}")
|
||||||
"ac_member_added {} to chat {} from {}".format(
|
|
||||||
contact.addr,
|
|
||||||
chat.id,
|
|
||||||
actor or message.get_sender_contact().addr,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
for member in chat.get_contacts():
|
for member in chat.get_contacts():
|
||||||
print(f"chat member: {member.addr}")
|
print(f"chat member: {member.addr}")
|
||||||
|
|
||||||
@account_hookimpl
|
@account_hookimpl
|
||||||
def ac_member_removed(self, chat, contact, actor, message):
|
def ac_member_removed(self, chat, contact, actor, message):
|
||||||
print(
|
print(f"ac_member_removed {contact.addr} from chat {chat.id} by {actor or message.get_sender_contact().addr}")
|
||||||
"ac_member_removed {} from chat {} by {}".format(
|
|
||||||
contact.addr,
|
|
||||||
chat.id,
|
|
||||||
actor or message.get_sender_contact().addr,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def main(argv=None):
|
def main(argv=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user