diff --git a/app/models/archive_content_models.py b/app/models/archive_content_models.py index fc0b2c5..ed48b0f 100644 --- a/app/models/archive_content_models.py +++ b/app/models/archive_content_models.py @@ -122,17 +122,6 @@ class Archive_Content_Base(BaseModel): log.debug('NOT Found hosted_file_id_random...') return v - - - # @validator('account_id', always=True) - # def account_id_lookup(cls, v, values, **kwargs): - # log.setLevel(logging.WARNING) - # log.debug(locals()) - - # if values['account_id_random']: - # return redis_lookup_id_random(record_id_random=values['account_id_random'], table_name='account') - # return None - class Config: underscore_attrs_are_private = True allow_population_by_field_name = True diff --git a/app/routers/archive.py b/app/routers/archive.py index d49e96c..a6d30d9 100644 --- a/app/routers/archive.py +++ b/app/routers/archive.py @@ -111,7 +111,7 @@ async def get_archive_obj( exclude_unset: Optional[bool] = True, response: Response = Response, ): - log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(locals()) if archive_id := redis_lookup_id_random(record_id_random=archive_id, table_name='archive'): pass diff --git a/app/routers/hosted_file.py b/app/routers/hosted_file.py index 7815afc..6929194 100644 --- a/app/routers/hosted_file.py +++ b/app/routers/hosted_file.py @@ -147,8 +147,8 @@ async def download_hosted_file( if hosted_file_id := redis_lookup_id_random(record_id_random=hosted_file_id, table_name='hosted_file'): pass else: return mk_resp(data=None, status_code=404, response=commons.response, status_message='The hosted_file ID was invalid or not found.') - # hosted_files_path = settings.FILES_PATH['hosted_files_root'] - hosted_files_path = '/home/scott/tmp/hosted_files_dev/' + 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}') if hosted_file_obj := load_hosted_file_obj(