mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2025-01-01 15:39:20 +00:00
Fix missing import
This commit is contained in:
parent
3d217383de
commit
52514957d1
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ from flask_security import admin_change_password, current_user
|
||||||
from sqlalchemy import and_
|
from sqlalchemy import and_
|
||||||
from wtforms import BooleanField, Form, RadioField, SelectField, StringField
|
from wtforms import BooleanField, Form, RadioField, SelectField, StringField
|
||||||
from wtforms.fields import DateField
|
from wtforms.fields import DateField
|
||||||
from wtforms.validators import NumberRange
|
from wtforms.validators import NumberRange, Optional
|
||||||
|
|
||||||
from . import assistantSpace, db
|
from . import assistantSpace, db
|
||||||
from .customClasses import SecureAssistantBaseView, SecureAssistantModelView
|
from .customClasses import SecureAssistantBaseView, SecureAssistantModelView
|
||||||
|
|
|
@ -9,7 +9,7 @@ def parse_bool(str):
|
||||||
elif str_lower == "true":
|
elif str_lower == "true":
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
raise (ValueError(f'Can not parse a bool from "{str}"'))
|
raise ValueError(f'Can not parse a bool from "{str}"')
|
||||||
|
|
||||||
|
|
||||||
def randomPassword():
|
def randomPassword():
|
||||||
|
|
Loading…
Reference in a new issue