Open palmoreck opened 6 years ago
1 - Even better if there's an option to send the downloaded files directly to a bucket (maybe by downloading as in-memory file object, and writing to bucket using boto3.Client.upload_fileobj()
)
2 - Right now files are downloaded to the global variable TEMP_DIR
, which needs to be set in .antares
. This is not the preferred way to handle temp dirs in UNIX. See gettempdir. Most uses of TEMP_DIR can probably be replaced by gettempdir()
, and the .antares
entry removed.
~
? because there's no TEMP_DIR variable in .antares
of nodo5's containerThat's right, default value (when not set in .antares) is defined in settings.py
antares download_order command
downloads apparently all orders with column value "downloaded=false" in table madmex_order of database without checking credentials in.antares
file.Also the files are downloaded to ~ directory of user.
Adapt this command to address this cases