diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6253a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,103 @@ +# ---> Python +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ diff --git a/lesa/forms.py b/lesa/forms.py index beb3760..935e87c 100644 --- a/lesa/forms.py +++ b/lesa/forms.py @@ -1,8 +1,7 @@ import phonenumbers from flask_wtf import FlaskForm -from wtforms import StringField -from wtforms import IntegerField, RadioField -from wtforms import DateField, TelField +from wtforms import StringField, IntegerField +from wtforms import DateField, RadioField from wtforms import FieldList, FormField from wtforms import HiddenField from wtforms import validators @@ -32,7 +31,7 @@ class ParentForm(FlaskForm): surname = StringField(label='Фамилия') firstname = StringField(label='Имя') midname = StringField(label='Отчество') - phone = TelField( + phone = StringField( label='Номер телефона', validators=[validators.Regexp(tel_regex)] ) diff --git a/main.py b/main.py index b630848..abcf86e 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,3 @@ -# For Deta - import waitress from lesa.app import app diff --git a/setup.py b/setup.py index 94bd9a8..56d5697 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='lesa', - version='1.0.0', + version='1.0.1', packages=['lesa'], include_package_data=True, zip_safe=False, diff --git a/tests/__pycache__/test_reg_performance.cpython-310.pyc b/tests/__pycache__/test_reg_performance.cpython-310.pyc deleted file mode 100644 index b829d8f..0000000 Binary files a/tests/__pycache__/test_reg_performance.cpython-310.pyc and /dev/null differ