mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-08 18:32:21 +00:00
Update system_model.py (#5017)
This commit is contained in:
@@ -60,7 +60,7 @@ class SystemModel(BaseModel):
|
||||
def __repr__(self) -> str: # pylint: disable=useless-super-delegation
|
||||
return super().__repr__()
|
||||
|
||||
@root_validator
|
||||
@root_validator(allow_reuse=True)
|
||||
@classmethod
|
||||
def add_additional_handlers(cls, values):
|
||||
if (
|
||||
@@ -72,14 +72,14 @@ class SystemModel(BaseModel):
|
||||
|
||||
return values
|
||||
|
||||
@root_validator
|
||||
@root_validator(allow_reuse=True)
|
||||
@classmethod
|
||||
def validate_send_to_s3(cls, values):
|
||||
if "posthog" in values["LOGGING_HANDLERS"] or values["LOG_COLLECT"] is False:
|
||||
values["LOGGING_SEND_TO_S3"] = False
|
||||
return values
|
||||
|
||||
@validator("LOGGING_HANDLERS")
|
||||
@validator("LOGGING_HANDLERS", allow_reuse=True)
|
||||
@classmethod
|
||||
def validate_logging_handlers(cls, v):
|
||||
for value in v:
|
||||
|
||||
Reference in New Issue
Block a user