Skip to content

Commit

Permalink
fix taref v16 open remote file data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Aug 21, 2023
1 parent 71c6428 commit 1c72237
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apptax/taxonomie/commands/migrate_taxref/commands_v16.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ def import_data_taxref_v16():
db.session.execute(query)
db.session.commit()

with open_remote_file(
base_url, "TAXREF_v16_2022.zip", open_fct=ZipFile, data_dir="tmp"
) as archive:
with open_remote_file(base_url, "TAXREF_v16_2022.zip", open_fct=ZipFile) as archive:
with archive.open("TAXREFv16.txt") as f:
logger.info("Insert TAXREFv16 into taxonomie.import_taxref table…")
copy_from_csv(
Expand Down

0 comments on commit 1c72237

Please sign in to comment.