SciPost Code Repository

Skip to content
Snippets Groups Projects
utils.py 191 B
Newer Older
__copyright__ = "Copyright 2016-2018, Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"


Jorran de Wit's avatar
Jorran de Wit committed
def slug2id(slug):
    return int(slug) - 9631


def id2slug(id):
    return id + 9631