Removing data

21 views
Skip to first unread message

John Currey

unread,
Mar 27, 2022, 5:11:03 PM3/27/22
to SDQL API
Hi,

I've been trying unsuccessfully to remove these games:


I've tried several times, but they're still there. These are the only games with player data in the MLB database at the moment. 

Joe Meyer

unread,
Mar 27, 2022, 5:53:29 PM3/27/22
to sdq...@googlegroups.com
John and SDQL API Friends,

the Python snippet below worked as expected.
Did you perhaps forget the required 'double header' key?

best regards,

Joe Meyer
Sports Database LLC

def GimmeTheDog_post_data():
    url = "https://s3.sportsdatabase.com/api"
    d = { "date": 20190420, "t:team": "Indians","double header":1}
    h = {'token':GimmeTheDog_TOKEN,'client':'GimmeTheDog','league':'MLB','action':'remove'}
    ret = requests.post(url,json=d, headers=h)
    print("ret:",ret.status_code,ret.text,)



--

---
You received this message because you are subscribed to the Google Groups "SDQL API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sdqlapi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sdqlapi/398f304f-976c-4898-9c4d-1675c57bc5f4n%40googlegroups.com.

John Currey

unread,
Mar 27, 2022, 6:17:01 PM3/27/22
to SDQL API
Yes, I did. All of those games are double-headers. Apparently, it's spring training for me too. Thanks. 
Reply all
Reply to author
Forward
0 new messages