Skip to content

Commit

Permalink
Verify all checks of str in redis list. Fixes wise-agents#353
Browse files Browse the repository at this point in the history
  • Loading branch information
maeste committed Sep 23, 2024
1 parent 089bbe9 commit 21cabda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wiseagents/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def add_participant(self, agent_name: str):
pipe.execute()
return
else:
if agent_name not in pipe.lrange("participants", 0, -1):
if bytes(agent_name, 'utf-8') not in pipe.lrange("participants", 0, -1):
pipe.multi()
pipe.rpush("participants", agent_name)
pipe.execute()
Expand Down

0 comments on commit 21cabda

Please sign in to comment.