1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Fix missing import

This commit is contained in:
Mo 2022-05-09 02:10:30 +02:00
parent 3d217383de
commit 52514957d1
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ from flask_security import admin_change_password, current_user
from sqlalchemy import and_
from wtforms import BooleanField, Form, RadioField, SelectField, StringField
from wtforms.fields import DateField
from wtforms.validators import NumberRange
from wtforms.validators import NumberRange, Optional
from . import assistantSpace, db
from .customClasses import SecureAssistantBaseView, SecureAssistantModelView

View file

@ -9,7 +9,7 @@ def parse_bool(str):
elif str_lower == "true":
return True
else:
raise (ValueError(f'Can not parse a bool from "{str}"'))
raise ValueError(f'Can not parse a bool from "{str}"')
def randomPassword():