Some general clean up and updates.
This commit is contained in:
@@ -7,8 +7,8 @@ from fastapi import APIRouter, Depends, Header, HTTPException, Response, status
|
|||||||
from pydantic import BaseModel, EmailStr, Field
|
from pydantic import BaseModel, EmailStr, Field
|
||||||
from typing import Dict, List, Optional, Set, Union
|
from typing import Dict, List, Optional, Set, Union
|
||||||
|
|
||||||
from app.log import *
|
from app.log import log, logging
|
||||||
from app.db_sql import sql_select
|
from app.db_sql import redis_lookup_id_random, sql_select
|
||||||
|
|
||||||
|
|
||||||
# ### BEGIN ### API Lib General ### async get_token_header() ###
|
# ### BEGIN ### API Lib General ### async get_token_header() ###
|
||||||
@@ -20,7 +20,7 @@ async def get_token_header(x_token:str = Header(...)):
|
|||||||
|
|
||||||
# ### BEGIN ### API Lib General ### async get_account_header() ###
|
# ### BEGIN ### API Lib General ### async get_account_header() ###
|
||||||
# Updated 2021-08-23
|
# Updated 2021-08-23
|
||||||
async def get_account_header(x_account_id:str = Header(...)):
|
async def get_account_header(x_account_id:str = Header(...)) -> dict:
|
||||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARN, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.WARNING) # DEBUG, INFO, WARN, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user