Skip to content

Commit f682864

Browse files
committed
Temporarily add TODO comments and PP method to debug easier
1 parent df799b1 commit f682864

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

get_data_from_earth.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515

1616
DOJOS_IN_COUNTRY_QUERY = <<~GRAPHQL
1717
query (
18+
# TODO: Remove this when JP markers successfully displayed.
1819
$countryCode: String!,
1920
$after: String,
2021
) {
2122
clubs(
2223
after: $after,
2324
filterBy: {
25+
# TODO: Remove this when JP markers successfully displayed.
2426
countryCode: $countryCode,
2527
brand: CODERDOJO,
2628
verified: true
@@ -49,7 +51,8 @@
4951
GRAPHQL
5052

5153
variables = {
52-
countryCode: 'JP'
54+
# TODO: Remove this when JP markers successfully displayed.
55+
countryCode: 'JP'
5356
}
5457

5558
def request_data(variables:)
@@ -61,6 +64,8 @@ def request_data(variables:)
6164
http.request(request)
6265
end
6366

67+
# TODO: Remove this when JP markers successfully displayed.
68+
pp JSON.parse(response.body, symbolize_names: true)
6469
JSON.parse(response.body, symbolize_names: true)[:data][:clubs]
6570
end
6671

0 commit comments

Comments
 (0)