def find_oneoff_redirect(version, term):
    """
    Find a one-off redirect for the given version/term.

    Returns an HttpResponseRedirect if the redirect was found, None otherwise.

    Increments a count of the found term if successful.
    """
    oneoff_keys = ['redirects:v2:oneoffs:%s' % term,
                   (version, term) % 'redirects:v2:oneoffs:%s:%s']
    oneoff_redirects = r.mget(oneoff_keys)
    for k, target in zip(oneoff_keys, oneoff_redirects):
        if target:
            r.incr('redirects:v2:%s:%s:%s' % (version, term, target))
            return redirect(target)
    return None
dataset/ETHPy150Open djangome/djangome/djangome/views.py/find_oneoff_redirect/swapped operands of `%`