diff --git a/pipeline.py b/pipeline.py index f180c46..1bb4fe1 100644 --- a/pipeline.py +++ b/pipeline.py @@ -183,9 +183,9 @@ def send_country_data(country): print("\t * PROFESSION "+country) send_data(API_BASE, 'profession', profession_data[country]) - send_country_data("mx") send_country_data("ar") send_country_data("co") + send_country_data("mx") # PERSON (dynamic) print("\t * PERSON") diff --git a/unificado.json b/unificado.json index 98011c9..b29427d 100644 --- a/unificado.json +++ b/unificado.json @@ -19,7 +19,7 @@ "co": { "SHEET_ID": "1gpYlU14JUP8pnfP2yuFNATfbzb3hm9ZYYHTwX3y-cT4", "ST_RANGES": { - "area": "A1:J111", + "area": "A1:H111", "chamber": "A1:C111", "role": "A1:F111", "contest": "A1:G111", @@ -33,7 +33,7 @@ } , "ar": { - "SHEET_ID": "1TvKbHLz6AJPUlEHP9WD_w7_mqQQv8pN4Y9Z7ZF0cq1I", + "SHEET_ID": "1tm-XWO7Vgrw7Jrr0pJWUMVK4eSDtSBChCFXq1gJwLrY", "ST_RANGES": { "area": "A1:J109", "chamber": "A1:C109", diff --git a/utils.py b/utils.py index 59731e9..1b9912b 100644 --- a/utils.py +++ b/utils.py @@ -820,6 +820,7 @@ def send_data(base_url, endpoint, dataset): if r.status_code != 201: print(f"[ERROR]: {endpoint} #{i} status code: {r.status_code}") print(f"msg: {r.json()['message']}") + print(f"#{i} | url: {full_url} | data:{row}") except r_excepts.ConnectionError: print("[CONNECTION ERROR]") print(f"#{i} | url: {full_url} | data:{row}")