pyinstaller onedir workaround for requests issue,

moved spec file to build folder


Former-commit-id: 4427eba5c993222cd2ebfdfc76a4685e25e18b0c
This commit is contained in:
Arthur Lu
2022-02-24 02:56:08 +00:00
parent 9a1a45f1c9
commit 4836f48a34
6 changed files with 58 additions and 50 deletions

View File

@@ -13,7 +13,7 @@ def get_team_competition():
"CLIENT_ID": trakey['CLIENT_ID'],
"CLIENT_SECRET": trakey['CLIENT_SECRET']
}
response = requests.request("GET", url + endpoint, verify=False, params=params)
response = requests.request("GET", url + endpoint, params=params)
json = response.json()
if json['success']:
return json['competition']
@@ -26,7 +26,7 @@ def get_team():
"CLIENT_ID": trakey['CLIENT_ID'],
"CLIENT_SECRET": trakey['CLIENT_SECRET']
}
response = requests.request("GET", url + endpoint, verify=False, params=params)
response = requests.request("GET", url + endpoint, params=params)
json = response.json()
if json['success']:
return json['team']
@@ -41,7 +41,7 @@ def get_team_match_data(competition, team_num):
"CLIENT_ID": trakey['CLIENT_ID'],
"CLIENT_SECRET": trakey['CLIENT_SECRET']
}
response = requests.request("GET", url + endpoint, verify=False, params=params)
response = requests.request("GET", url + endpoint, params=params)
json = response.json()
if json['success']:
return json['data'][team_num]
@@ -55,7 +55,7 @@ def get_teams_at_competition(competition):
"CLIENT_ID": trakey['CLIENT_ID'],
"CLIENT_SECRET": trakey['CLIENT_SECRET']
}
response = requests.request("GET", url + endpoint, verify=False, params=params)
response = requests.request("GET", url + endpoint, params=params)
json = response.json()
if json['success']:
return list(json['data'].keys())