Data issue

63 visualitzacions
Ves al primer missatge no llegit

John Currey

no llegida,
6 de set. 2021, 8:55:466/9/21
a SDQL API
Hi, 

I accidentally added a game where t:team and o:team are a list, and it won't let me remove it. Is there any way I can get it out?

Sep6.JPG
Thanks.

Joe Meyer

no llegida,
6 de set. 2021, 10:39:456/9/21
a sdq...@googlegroups.com
John,

you can remove all games for a date by setting "t:team" to the wildcard character "*". 

Like this:
    d = { "date": 20210906, "t:team": "*"}
    h = {'token':jcurrey_TOKEN,'client':'jcurrey','league':'NFL','action':'remove'}
    ret = requests.post(url,json=d, headers=h)

Best regards,

Joe Meyer


--

---
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/7a6dc81c-cb3a-47b1-8ffe-69052c9c947cn%40googlegroups.com.

John Currey

no llegida,
6 de set. 2021, 11:20:346/9/21
a SDQL API
Oh, sweet! It worked like a charm, thanks!

John Currey

no llegida,
18 d’oct. 2021, 17:52:1218/10/21
a SDQL API
I'm trying to remove the only game on 20211007 without success. It's the Thursday Night game between the Rams and the Seahawks. I inadvertently entered the Rams as both the home and away teams. 

Here's the code I think should work that I copied from above:

d = { "date": 20211007, "t:team": "*"}
h = {'token':token,'client':'jcurrey','league':'NFL','action':'remove'}
ret = requests.post(remove_url,json=d, headers=h)

This is what the API has to say:
  • ret: 200 {"error": "team needs to be made of letters, spaces, underscores and dots. You have: *"}

Joe Meyer

no llegida,
19 d’oct. 2021, 9:38:1819/10/21
a sdq...@googlegroups.com
John,

I believe this is patched.
Please try that request again.

best,

Joe Meyer

John Currey

no llegida,
19 d’oct. 2021, 10:12:5619/10/21
a SDQL API
All is now good! Thanks Joe!
Respon a tots
Respon a l'autor
Reenvia
0 missatges nous