diff options
Diffstat (limited to 'python/collateral/wells.py')
| -rw-r--r-- | python/collateral/wells.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/python/collateral/wells.py b/python/collateral/wells.py index e47142ee..e9065c88 100644 --- a/python/collateral/wells.py +++ b/python/collateral/wells.py @@ -1,15 +1,12 @@ import pandas as pd from . import DAILY_DIR, SftpClient2 from .common import compare_notionals, STRATEGY_CASH_MAPPING -from functools import partial from sqlalchemy.exc import IntegrityError -sftp = SftpClient2.from_creds("wells") - -download_files = partial( - sftp.download_files, "/RECEIVE/339425_DATO2", DAILY_DIR / "Wells_reports" -) +def download_files(**args): + sftp = SftpClient2.from_creds("wells") + sftp.download_files("/RECEIVE/339425_DATO2", DAILY_DIR / "Wells_reports") def collateral(d, positions, engine): |
