From 0a7a06f028fd5af63919b49cbd33fe1789327ab0 Mon Sep 17 00:00:00 2001 From: novokrest Date: Fri, 8 Jun 2018 22:20:22 +0300 Subject: [PATCH] flock: Rename local var `to` to `recipient_name` in `find_recipient` method. --- zulip_bots/zulip_bots/bots/flock/flock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/flock/flock.py b/zulip_bots/zulip_bots/bots/flock/flock.py index 581a21e..c69c0af 100644 --- a/zulip_bots/zulip_bots/bots/flock/flock.py +++ b/zulip_bots/zulip_bots/bots/flock/flock.py @@ -13,9 +13,9 @@ You can send messages to any Flock user associated with your account from Zulip. # Matches the recipient name provided by user with list of users in his contacts. # If matches, returns the matched User's ID -def find_recipient(res: str, to: str) -> str: +def find_recipient(res: str, recipient_name: str) -> str: for obj in res: - if to == obj['firstName']: + if recipient_name == obj['firstName']: return obj['id'] # Returns User's ID, if not found, returns error message.