update database
This commit is contained in:
@@ -12,6 +12,7 @@ from .states import ProfileSG
|
||||
def name_type_factory(text: str):
|
||||
if not 2 < len(text) < 20:
|
||||
raise ValueError("Имя должно быть от 2 до 20 символов")
|
||||
return text
|
||||
|
||||
def phone_type_factory(text: str):
|
||||
if len(re.findall("\d", text)) < 11:
|
||||
|
||||
Reference in New Issue
Block a user