Work on event program data importing.

This commit is contained in:
Scott Idem
2022-10-07 17:47:58 -04:00
parent 2c0e563fa6
commit e36a95fd76
4 changed files with 521 additions and 57 deletions

View File

@@ -161,10 +161,10 @@ def allowed_file_extension(extension: str, extension_list: list):
async def save_file(
file: UploadFile,
account_id: int,
account_id_random: str,
link_to_type: str,
link_to_id: int,
link_to_id_random: str,
account_id_random: str = None,
link_to_id_random: str = None,
check_allowed_extension: bool = False,
):
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
@@ -173,7 +173,6 @@ async def save_file(
hosted_files_path = settings.FILES_PATH['hosted_files_root']
# hosted_files_path = '/home/scott/tmp/hosted_files_dev/'
log.info(f'Hosted Files Path: {hosted_files_path}')
log.debug(shutil.disk_usage(hosted_files_path))
log.debug(dir(file))