mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
black and isort
This commit is contained in:
parent
c7533ea6f2
commit
d296c7298d
2 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@ from re import match
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
|
|
||||||
import email_validator
|
import email_validator
|
||||||
from flask import request, current_app
|
from flask import current_app, request
|
||||||
from flask_babel import lazy_gettext as _
|
from flask_babel import lazy_gettext as _
|
||||||
from flask_wtf.file import FileAllowed, FileField, FileRequired
|
from flask_wtf.file import FileAllowed, FileField, FileRequired
|
||||||
from flask_wtf.form import FlaskForm
|
from flask_wtf.form import FlaskForm
|
||||||
|
|
|
@ -260,6 +260,7 @@ def authenticate(project_id=None):
|
||||||
|
|
||||||
return render_template("authenticate.html", form=form)
|
return render_template("authenticate.html", form=form)
|
||||||
|
|
||||||
|
|
||||||
def get_project_form():
|
def get_project_form():
|
||||||
class _ProjectForm(ProjectForm):
|
class _ProjectForm(ProjectForm):
|
||||||
pass
|
pass
|
||||||
|
@ -268,6 +269,7 @@ def get_project_form():
|
||||||
setattr(_ProjectForm, "recaptcha", RecaptchaField())
|
setattr(_ProjectForm, "recaptcha", RecaptchaField())
|
||||||
return _ProjectForm()
|
return _ProjectForm()
|
||||||
|
|
||||||
|
|
||||||
@main.route("/", strict_slashes=False)
|
@main.route("/", strict_slashes=False)
|
||||||
def home():
|
def home():
|
||||||
project_form = get_project_form()
|
project_form = get_project_form()
|
||||||
|
|
Loading…
Reference in a new issue