A lot of route common params clean up
This commit is contained in:
@@ -57,13 +57,14 @@ async def common_route_params(
|
||||
enabled: str = 'enabled', # all, enabled, disabled
|
||||
limit: int = 100,
|
||||
by_alias: bool = True,
|
||||
exclude: Optional[list] = [],
|
||||
exclude_none: Optional[bool] = True,
|
||||
exclude_unset: bool = True,
|
||||
include: Optional[list] = [],
|
||||
# NOTE: Uncommenting either exclude or include breaks the JSON body format. I do not know why? Should be: {} Becomes this: {"obj_name": {"data_name": "data_value"}} -STI 2022-01-05
|
||||
# exclude: Optional[list] = [], # Leaving this and include commented out
|
||||
# include: Optional[list] = [], # Leaving this and exclude commented out
|
||||
response: Response = Response,
|
||||
) -> Common_Route_Params:
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
log.info(f'Setting commons values')
|
||||
|
||||
Reference in New Issue
Block a user