コード例 #1
0
def fucking_send(solution):
    # manpages, hands off!
    # at least this piece works
    s = json.dumps(solution)
    hdr = {'content-type': 'application/json'}
    r   = requests.post(
        goldcfg.url(), auth=('', goldcfg.token()), data=s, headers=hdr)
    assert r.text == 'created'
    print('sent')
コード例 #2
0
def run(s):
    hdr = {'content-type': 'application/json'}
    r   = req.post(goldcfg.url(), auth=('', goldcfg.token()), data=s, headers=hdr)
    return r.text == 'created'
コード例 #3
0
def referenceResults():
    r = req.get(goldcfg.url(), auth=('', goldcfg.token()))
    return json.loads(r.text)