From 52514957d1dada61347b6a74e0c9a924dab3e7b3 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Mon, 9 May 2022 02:10:30 +0200 Subject: [PATCH] Fix missing import --- advlabdb/assistantModelViews.py | 2 +- advlabdb/independent_funs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advlabdb/assistantModelViews.py b/advlabdb/assistantModelViews.py index 43e0b85..cc571a2 100644 --- a/advlabdb/assistantModelViews.py +++ b/advlabdb/assistantModelViews.py @@ -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 diff --git a/advlabdb/independent_funs.py b/advlabdb/independent_funs.py index 356bcee..5fc8576 100644 --- a/advlabdb/independent_funs.py +++ b/advlabdb/independent_funs.py @@ -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():