More again again. Moving ID random generation to the SQL db instead. General clean up.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from __future__ import annotations
|
||||
import datetime, hashlib, logging, os, pytz, redis, secrets
|
||||
import datetime, pytz
|
||||
|
||||
from typing import Dict, List, Optional, Set, Union
|
||||
from pydantic import BaseModel, EmailStr, Field, Json, PrivateAttr, ValidationError, validator
|
||||
@@ -13,6 +12,7 @@ from app.models.person_models import Person_Base
|
||||
from app.models.user_models import User_Base
|
||||
|
||||
|
||||
# ### BEGIN ### API Cont Edu Cert Person Models ### Cont_Edu_Cert_Person_Base() ###
|
||||
class Cont_Edu_Cert_Person_Base(BaseModel):
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
@@ -135,3 +135,4 @@ class Cont_Edu_Cert_Person_Base(BaseModel):
|
||||
underscore_attrs_are_private = True
|
||||
allow_population_by_field_name = True
|
||||
fields = base_fields
|
||||
# ### END ### API Cont Edu Cert Person Models ### Cont_Edu_Cert_Person_Base() ###
|
||||
|
||||
Reference in New Issue
Block a user