A lot of code clean up! Also adding in Response everywhere...
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime, json, pytz, secrets, time
|
||||
import pandas, xlrd # qrcode
|
||||
from fastapi import APIRouter, Body, Depends, Header, HTTPException, Query, status
|
||||
from fastapi import APIRouter, Body, Depends, Header, HTTPException, Query, Response, status
|
||||
from pydantic import BaseModel, EmailStr, Field
|
||||
from typing import Dict, List, Optional, Set, Union
|
||||
|
||||
@@ -26,6 +26,7 @@ router = APIRouter()
|
||||
|
||||
@router.post('/person_data', response_model=Resp_Body_Base)
|
||||
async def importing_person_data(
|
||||
response: Response = Response,
|
||||
):
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
@@ -335,6 +336,7 @@ async def importing_person_data(
|
||||
|
||||
@router.post('/cont_edu_cert_person_data', response_model=Resp_Body_Base)
|
||||
async def importing_cont_edu_cert_person_data(
|
||||
response: Response = Response,
|
||||
):
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
Reference in New Issue
Block a user