From c252680e2867432130e6e0d318fca11fd660e84c Mon Sep 17 00:00:00 2001 From: F-G Fernandez <26927750+frgfm@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:33:41 +0100 Subject: [PATCH] fix(models); remove faulty pattern --- src/app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/models.py b/src/app/models.py index d46f9ebe..7799f90a 100644 --- a/src/app/models.py +++ b/src/app/models.py @@ -69,7 +69,7 @@ class Organization(SQLModel, table=True): __tablename__ = "organizations" id: int = Field(None, primary_key=True) name: str = Field(..., min_length=5, max_length=100, nullable=False, unique=True) - telegram_id: Union[str, None] = Field(None, pattern=r"^@[a-zA-Z0-9_-]+$", nullable=True) + telegram_id: Union[str, None] = Field(None, nullable=True) class Webhook(SQLModel, table=True):