Skip to content

Commit

Permalink
fix(pipeline): rename uploaded layer icon
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashelms committed Feb 5, 2024
1 parent 1cca2e9 commit 0970022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/dags/task_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def fn():
# copy legend image
shutil.copyfile(f'{workdir}/legend.png', f'{upload_dir}/legend.png')
# copy layer icon
shutil.copyfile(f'/opt/airflow/plugins/layer-icons/{layer_id}.{layer_variable}.png', f'{upload_dir}/{layer_id}.{layer_variable}.png')
shutil.copyfile(f'/opt/airflow/plugins/layer-icons/{layer_id}.{layer_variable}.png', f'{upload_dir}/icon.png')
# make zip archive for offline usage
zip_file = f'{workdir}/package'
shutil.make_archive(zip_file, 'zip', root_dir=upload_dir)
Expand Down

0 comments on commit 0970022

Please sign in to comment.