def _escape_jid(jid):
    jid = str(jid)
    jid = re.sub(r"'*", "", jid)
    return jid
Do proper formatting of the jid
dataset/ETHPy150Open saltstack/salt/salt/returners/postgres_local_cache.py/_escape_jid