Some general clean up and updates.

This commit is contained in:
Scott Idem
2021-08-23 12:43:00 -04:00
parent e281b1d385
commit 5606cdb12f

View File

@@ -7,8 +7,8 @@ from fastapi import APIRouter, Depends, Header, HTTPException, Response, status
from pydantic import BaseModel, EmailStr, Field
from typing import Dict, List, Optional, Set, Union
from app.log import *
from app.db_sql import sql_select
from app.log import log, logging
from app.db_sql import redis_lookup_id_random, sql_select
# ### 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() ###
# 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.debug(locals())