remove reduntant HtmlContent class in save_data_item_to_storage
This commit is contained in:
parent
c0d450b165
commit
2e7ff0b01b
1 changed files with 0 additions and 7 deletions
|
|
@ -18,13 +18,6 @@ class SaveDataSettings(BaseSettings):
|
||||||
model_config = SettingsConfigDict(env_file=".env", extra="allow")
|
model_config = SettingsConfigDict(env_file=".env", extra="allow")
|
||||||
|
|
||||||
|
|
||||||
class HTMLContent(str):
|
|
||||||
def __new__(cls, value: str):
|
|
||||||
if not ("<" in value and ">" in value):
|
|
||||||
raise ValueError("Not valid HTML-like content")
|
|
||||||
return super().__new__(cls, value)
|
|
||||||
|
|
||||||
|
|
||||||
settings = SaveDataSettings()
|
settings = SaveDataSettings()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue