Dumb bug fixes... should have tested
This commit is contained in:
@@ -6,7 +6,7 @@ from pydantic import BaseModel, EmailStr, Field, Json, PrivateAttr, ValidationEr
|
||||
from app.db_sql import redis_lookup_id_random
|
||||
from app.lib_general import log, logging
|
||||
|
||||
# from .common_field_schema import base_fields, default_num_bytes
|
||||
from .common_field_schema import base_fields, default_num_bytes
|
||||
#from .user_models import User_Base
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ class User_Role_Base(BaseModel):
|
||||
|
||||
_processed_at: datetime.datetime = PrivateAttr(default_factory=datetime.datetime.now)
|
||||
|
||||
@validator('id', always=True)
|
||||
# @validator('id', always=True)
|
||||
# def user_role_id_lookup(cls, v, values, **kwargs):
|
||||
# if isinstance(v, int) and v > 0: return v
|
||||
# elif id_random := values.get('id_random'):
|
||||
|
||||
Reference in New Issue
Block a user