def get_referrer(pid, uid): tid = helpers.getcookie("tid") referrer = helpers.check_trackid(tid, pid) if referrer != uid: return referrer
def get_referrer(pid, uid): tid = helpers.getcookie('tid') referrer = helpers.check_trackid(tid, pid) if referrer != uid: return referrer
def set_referrer_cookie(tid, pid): if helpers.check_trackid(tid, pid): helpers.setcookie("tid", tid)
def set_referrer_cookie(tid, pid): if helpers.check_trackid(tid, pid): helpers.setcookie('tid', tid)