mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +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
|
||||
|
||||
import email_validator
|
||||
from flask import request, current_app
|
||||
from flask import current_app, request
|
||||
from flask_babel import lazy_gettext as _
|
||||
from flask_wtf.file import FileAllowed, FileField, FileRequired
|
||||
from flask_wtf.form import FlaskForm
|
||||
|
|
|
@ -260,6 +260,7 @@ def authenticate(project_id=None):
|
|||
|
||||
return render_template("authenticate.html", form=form)
|
||||
|
||||
|
||||
def get_project_form():
|
||||
class _ProjectForm(ProjectForm):
|
||||
pass
|
||||
|
@ -268,6 +269,7 @@ def get_project_form():
|
|||
setattr(_ProjectForm, "recaptcha", RecaptchaField())
|
||||
return _ProjectForm()
|
||||
|
||||
|
||||
@main.route("/", strict_slashes=False)
|
||||
def home():
|
||||
project_form = get_project_form()
|
||||
|
|
Loading…
Reference in a new issue