Skip to content

Commit 436e2d5

Browse files
Reformat where spaces are added after "..." in GraphQL queries
Space is added only if it's not followed by an other fragment (e.g., "... on Show"). If "..." is followed by a fragment, then there's no space. I don't know if it makes sense, but that's how browser sends queries to JustWatch.
1 parent fc027c0 commit 436e2d5

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/simplejustwatchapi/graphql.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
$filter: OfferFilter!,
104104
) {
105105
node(id: $nodeId) {
106-
...on Show {
106+
... on Show {
107107
seasons(sortDirection: ASC) {
108108
...TitleDetails
109109
}
@@ -126,7 +126,7 @@
126126
$filter: OfferFilter!,
127127
) {
128128
node(id: $nodeId) {
129-
...on Season {
129+
... on Season {
130130
episodes(sortDirection: ASC) {
131131
...TitleDetails
132132
}
@@ -147,7 +147,7 @@
147147
platform: WEB
148148
includeAddons: true
149149
) {
150-
... PackageDetails
150+
...PackageDetails
151151
}
152152
__typename
153153
}
@@ -181,10 +181,10 @@
181181
__typename
182182
}
183183
...StreamingChartInfoFragment
184-
...on Show {
184+
... on Show {
185185
totalSeasonCount
186186
}
187-
...on Season {
187+
... on Season {
188188
totalEpisodeCount
189189
}
190190
offers(country: $country, platform: WEB, filter: $filter) {
@@ -221,13 +221,13 @@
221221
runtime
222222
shortDescription
223223
...FullContentDetails
224-
...on MovieOrShowContent {
224+
... on MovieOrShowContent {
225225
ageCertification
226226
}
227-
...on SeasonContent {
227+
... on SeasonContent {
228228
seasonNumber
229229
}
230-
...on EpisodeContent {
230+
... on EpisodeContent {
231231
seasonNumber
232232
episodeNumber
233233
}
@@ -278,7 +278,7 @@
278278
lastChangeRetailPriceValue
279279
type
280280
package {
281-
... PackageDetails
281+
...PackageDetails
282282
}
283283
standardWebURL
284284
elementCount

test/simplejustwatchapi/test_graphql.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
$filter: OfferFilter!,
108108
) {
109109
node(id: $nodeId) {
110-
...on Show {
110+
... on Show {
111111
seasons(sortDirection: ASC) {
112112
...TitleDetails
113113
}
@@ -130,7 +130,7 @@
130130
$filter: OfferFilter!,
131131
) {
132132
node(id: $nodeId) {
133-
...on Season {
133+
... on Season {
134134
episodes(sortDirection: ASC) {
135135
...TitleDetails
136136
}
@@ -151,7 +151,7 @@
151151
platform: WEB
152152
includeAddons: true
153153
) {
154-
... PackageDetails
154+
...PackageDetails
155155
}
156156
__typename
157157
}
@@ -185,10 +185,10 @@
185185
__typename
186186
}
187187
...StreamingChartInfoFragment
188-
...on Show {
188+
... on Show {
189189
totalSeasonCount
190190
}
191-
...on Season {
191+
... on Season {
192192
totalEpisodeCount
193193
}
194194
offers(country: $country, platform: WEB, filter: $filter) {
@@ -225,13 +225,13 @@
225225
runtime
226226
shortDescription
227227
...FullContentDetails
228-
...on MovieOrShowContent {
228+
... on MovieOrShowContent {
229229
ageCertification
230230
}
231-
...on SeasonContent {
231+
... on SeasonContent {
232232
seasonNumber
233233
}
234-
...on EpisodeContent {
234+
... on EpisodeContent {
235235
seasonNumber
236236
episodeNumber
237237
}
@@ -282,7 +282,7 @@
282282
lastChangeRetailPriceValue
283283
type
284284
package {
285-
... PackageDetails
285+
...PackageDetails
286286
}
287287
standardWebURL
288288
elementCount

0 commit comments

Comments
 (0)