Skip to content

Commit

Permalink
Use variable for 'WITHVALUES' arg
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Apr 29, 2024
1 parent 15ad97a commit db8173f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/python/glide/async_commands/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from glide.async_commands.core import (
ConditionalChange,
CoreCommands,
ExpireOptions,
ExpirySet,
GeospatialData,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit db8173f

Please sign in to comment.