Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull out vendor file naming specification to a parameter to be passed to DAG #1064

Open
shelleydoljack opened this issue Jun 7, 2024 · 0 comments
Labels
data export Related to Data Export out of FOLIO to external vendors

Comments

@shelleydoljack
Copy link
Contributor

def vendor_filename_spec(conn_id, filename):
"""
Returns a filename per the vendor's filenaming convention
"""
if conn_id == "gobi":
# gobi should have "stf" prepended
return "stf" + Path(filename).name
elif conn_id == "sharevde":
return "tbd"
else:
Path(filename).name

Could use this json libsys_airflow/plugins/data_exports/apps/vendors.json that the file upload uses to populate a list of vendors to select.

@shelleydoljack shelleydoljack added the data export Related to Data Export out of FOLIO to external vendors label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data export Related to Data Export out of FOLIO to external vendors
Projects
None yet
Development

No branches or pull requests

1 participant