Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mukundesh committed Mar 20, 2024
1 parent 0ab2833 commit b249678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import/src/import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def get_urls(code):

num_mr, num_en = num_tgt_mr_files + len(tgt_new_infos), num_tgt_en_files + len(tgt_new_infos)
num_mr, num_en = int(num_mr), int(num_en)

start_urls, last_urls = get_urls(first['code']), get_urls(last['code'])

return [first_date, last_date, num_mr, num_en, start_urls, last_urls]
Expand Down Expand Up @@ -153,7 +154,7 @@ def main():

if src_dir.exists():
line = export_data(src_dir, tgt_dir)
line = [idx+1, tgt_name.replace('_', ' ')] + line
line = [int(idx+1), tgt_name.replace('_', ' ')] + line
table_lines.append(line)
else:
print(f'src_dir not found: {str(src_dir)}')
Expand Down

0 comments on commit b249678

Please sign in to comment.