-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquery.py
35 lines (33 loc) · 1.13 KB
/
query.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Example queries for Sorare
getAllPlayer = """
query AllTeamPlayer($team:String!) {
baseballTeam(slug: $team) {
players{
slug
displayName
positions
isActive
age
playerInjury{
comment
startDate
description
}
avatarImageUrl
croppedPictureUrl
team{
abbreviation
name
slug
}
}
}
}
"""
all_teams_slug = {'milwaukee-brewers', 'houston-astros', 'minnesota-twins', 'baltimore-orioles', 'san-francisco-giants',
'washington-nationals', 'chicago-white-sox', 'colorado-rockies', 'pittsburgh-pirates',
'cleveland-guardians', 'chicago-cubs', 'new-york-yankees', 'los-angeles-angels', 'tampa-bay-rays',
'seattle-mariners', 'philadelphia-phillies', 'san-diego-padres', 'atlanta-braves', 'miami-marlins',
'oakland-athletics', 'los-angeles-dodgers', 'st-louis-cardinals', 'toronto-blue-jays',
'detroit-tigers', 'new-york-mets', 'arizona-diamondbacks', 'boston-red-sox', 'kansas-city-royals',
'texas-rangers', 'cincinnati-reds'}