From d9c81ec68c85a83d2beb7058806d9b89ba9908d9 Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 26 Oct 2022 13:52:51 +0200 Subject: [PATCH] Only fetch users when necessary --- mmcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmcli.py b/mmcli.py index deaaf4d..b4b61fa 100755 --- a/mmcli.py +++ b/mmcli.py @@ -181,8 +181,8 @@ def cat(mm_api: mattermost.MMApi, cmdline_args): # ] team, channel = resolve_team_channel(mm_api, cmdline_args.channel) - users = list(mm_api.get_users()) if not cmdline_args.ids: + users = list(mm_api.get_users()) def attribute(key_value): key, value = key_value if key == "channel_id":