Skip to content

Commit

Permalink
Update update_worldbank_data_on_carto.py
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqi-tori authored Sep 24, 2024
1 parent 6c1d9fc commit 3ad03fc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,8 @@ def main():
if not os.path.exists(data_dir):
os.mkdir(data_dir)

wb_rw_table = wb_rw_table[wb_rw_table['skip']!=True]

# process each Carto table for World Bank datasets one at a time
for table_name, info in wb_rw_table.iterrows():
for table_name, info in wb_rw_table[wb_rw_table['skip'] != True].iterrows():
# get the dataset name (table name without the '_edit' at the end of the table_name
dataset_name = table_name[:-5]
logging.info('Next table to update: {}'.format(dataset_name))
Expand Down Expand Up @@ -373,4 +371,4 @@ def main():
delete_local()

logging.info('SUCCESS')


0 comments on commit 3ad03fc

Please sign in to comment.