From e22cd366deaca9f43e29098188195d9b5e85b9a1 Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Fri, 26 Apr 2024 15:08:01 -0700 Subject: [PATCH] Use variable for 'WITHVALUES' arg --- python/python/glide/async_commands/transaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/python/glide/async_commands/transaction.py b/python/python/glide/async_commands/transaction.py index adb84a2669..4fee2de256 100644 --- a/python/python/glide/async_commands/transaction.py +++ b/python/python/glide/async_commands/transaction.py @@ -5,6 +5,7 @@ from glide.async_commands.core import ( ConditionalChange, + CoreCommands, ExpireOptions, ExpirySet, GeospatialData, @@ -661,7 +662,7 @@ def hrandfield_count_withvalues( If the hash does not exist or is empty, the response will be an empty list. """ return self.append_command( - RequestType.HRandField, [key, str(count), "WITHVALUES"] + RequestType.HRandField, [key, str(count), CoreCommands.WITH_VALUES] ) def lpush(self: TTransaction, key: str, elements: List[str]) -> TTransaction: