Skip to content

zrank and zscore fail with integer members #49

@noise

Description

@noise

In client.py:zadd(), the member is converted to a string:

        insert_count = lambda member, score: 1 if zset.insert(str(member), float(score)) else 0

but not also done in sortedset.py:zscore() and zrank(), so if you:

zadd(key, 12345, 1.0)
zscore(key, 12345)

it fails to find the member.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions