Skip to content

Commit

Permalink
Fix colombia areas
Browse files Browse the repository at this point in the history
  • Loading branch information
martinszy committed Jun 24, 2024
1 parent 0b8054d commit 5b4dea2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions unificado.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -33,7 +33,7 @@
}
,
"ar": {
"SHEET_ID": "1TvKbHLz6AJPUlEHP9WD_w7_mqQQv8pN4Y9Z7ZF0cq1I",
"SHEET_ID": "1tm-XWO7Vgrw7Jrr0pJWUMVK4eSDtSBChCFXq1gJwLrY",
"ST_RANGES": {
"area": "A1:J109",
"chamber": "A1:C109",
Expand Down
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 5b4dea2

Please sign in to comment.