Skip to content

Sum of counts fails on memcached backend because counts are of type str #1

Description

@pmclanahan

Using python-memcache and the memcached backend in Django, the return from line 32 is a list of strings. This throws an exception on line 35 when the sum is attempted. I modified line 32 to the following to correct the issue.

counts = [int(x) for x in self.get_counters(request).values()]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions