How to use the shortuuid.decode function in shortuuid

To help you get started, we’ve selected a few shortuuid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CenterForOpenScience / SHARE / api / filters.py View on Github external
def filter(self, qs, value):
        if value:
            shortuuid.set_alphabet('23456789abcdefghjkmnpqrstuvwxyz')
            value = shortuuid.decode(value)
        return super(ObjectIDFilter, self).filter(qs, value)