From 50c8b11f26a8f79c15b1cddceee67c263cf21f8a Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Mon, 12 Jun 2023 09:45:51 +0200 Subject: [PATCH] Finally fix list_macros completely (#61) --- robocop_ng/cogs/macro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robocop_ng/cogs/macro.py b/robocop_ng/cogs/macro.py index a01a3bc..f34e752 100644 --- a/robocop_ng/cogs/macro.py +++ b/robocop_ng/cogs/macro.py @@ -138,7 +138,7 @@ class Macro(Cog): for key in sorted(macros["macros"].keys()): message = f"- {key}" - if not macros_only: + if not macros_only and key in macros["aliases"]: for alias in macros["aliases"][key]: message += f", {alias}" macros_formatted.append(message)