temporary workaround for missing ssl cert

Former-commit-id: 739a2f36f8
This commit is contained in:
Arthur Lu
2021-08-18 03:26:47 +00:00
parent b6a1dfedb9
commit 0287b5c0e2
2 changed files with 2 additions and 2 deletions

View File

@@ -1,10 +1,9 @@
import requests
import pymongo
import pandas as pd
def pull_new_tba_matches(apikey, competition, cutoff):
api_key= apikey
x=requests.get("https://www.thebluealliance.com/api/v3/event/"+competition+"/matches/simple", headers={"X-TBA-Auth_Key":api_key})
x=requests.get("https://www.thebluealliance.com/api/v3/event/"+competition+"/matches/simple", headers={"X-TBA-Auth_Key":api_key}, verify=False)
out = []
for i in x.json():
if i["actual_time"] != None and i["actual_time"]-cutoff >= 0 and i["comp_level"] == "qm":