From f39d869735126c8a03ea53b9bd7553d86683acb0 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Sat, 12 Oct 2024 13:57:21 +0700 Subject: [PATCH 1/4] Test update --- .github/workflows/update-data.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml index 1dbb5fc..5c15336 100644 --- a/.github/workflows/update-data.yml +++ b/.github/workflows/update-data.yml @@ -1,8 +1,6 @@ name: Update Data -on: - schedule: - - cron: '0 2 * * 0' +on: push jobs: update-data: From be07b0a4523723d9505f5ecd77583dd84e86cecb Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Sat, 12 Oct 2024 14:01:52 +0700 Subject: [PATCH 2/4] WIP --- lib/rate_center/data_source/local_calling_guide.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rate_center/data_source/local_calling_guide.rb b/lib/rate_center/data_source/local_calling_guide.rb index ec26485..e24be9c 100644 --- a/lib/rate_center/data_source/local_calling_guide.rb +++ b/lib/rate_center/data_source/local_calling_guide.rb @@ -53,6 +53,7 @@ def fetch_rate_center_data(params) uri = URI("/xmlrc.php") uri.query = Rack::Utils.build_query(params) response = http_client.get(uri) + logger.debug(response.body) response_parser.parse(response.body) end From 60cdda555f71aff42e0ea95725ba620ff1211afb Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Sat, 12 Oct 2024 14:03:10 +0700 Subject: [PATCH 3/4] WIP --- lib/rate_center/data_source/local_calling_guide.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rate_center/data_source/local_calling_guide.rb b/lib/rate_center/data_source/local_calling_guide.rb index e24be9c..4dd0e79 100644 --- a/lib/rate_center/data_source/local_calling_guide.rb +++ b/lib/rate_center/data_source/local_calling_guide.rb @@ -53,7 +53,8 @@ def fetch_rate_center_data(params) uri = URI("/xmlrc.php") uri.query = Rack::Utils.build_query(params) response = http_client.get(uri) - logger.debug(response.body) + puts "Response: #{response.status}" + puts "Body: #{response.body}" response_parser.parse(response.body) end From e429b20185f855c6d8613ee01d23c3aff9b45f08 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Sat, 12 Oct 2024 14:06:03 +0700 Subject: [PATCH 4/4] WIP --- lib/rate_center/data_source/local_calling_guide.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rate_center/data_source/local_calling_guide.rb b/lib/rate_center/data_source/local_calling_guide.rb index 4dd0e79..26df48b 100644 --- a/lib/rate_center/data_source/local_calling_guide.rb +++ b/lib/rate_center/data_source/local_calling_guide.rb @@ -53,8 +53,7 @@ def fetch_rate_center_data(params) uri = URI("/xmlrc.php") uri.query = Rack::Utils.build_query(params) response = http_client.get(uri) - puts "Response: #{response.status}" - puts "Body: #{response.body}" + p "Parsing body for query: #{params}" response_parser.parse(response.body) end