diff --git a/ref-test/app/api/views.py b/ref-test/app/api/views.py index 617951b..1b4c2cd 100644 --- a/ref-test/app/api/views.py +++ b/ref-test/app/api/views.py @@ -6,7 +6,6 @@ from ..tools.test import evaluate_answers, generate_questions from flask import Blueprint, jsonify, request from flask.helpers import abort, flash, url_for from flask_login import login_required -from sqlalchemy.exc import SQLAlchemyError from datetime import datetime, timedelta from json import loads diff --git a/ref-test/app/editor/views.py b/ref-test/app/editor/views.py index 0a98452..2e747dd 100644 --- a/ref-test/app/editor/views.py +++ b/ref-test/app/editor/views.py @@ -7,7 +7,6 @@ from ..tools.logs import write from flask import Blueprint, jsonify, render_template from flask.helpers import abort, flash, redirect, request, url_for from flask_login import login_required -from sqlalchemy.exc import SQLAlchemyError editor = Blueprint( name='editor', diff --git a/ref-test/app/models/dataset.py b/ref-test/app/models/dataset.py index f6bc977..dc870f5 100644 --- a/ref-test/app/models/dataset.py +++ b/ref-test/app/models/dataset.py @@ -5,7 +5,6 @@ from ..tools.logs import write from flask import current_app as app from flask.helpers import flash from flask_login import current_user -from sqlalchemy.exc import SQLAlchemyError from werkzeug.utils import secure_filename from datetime import datetime diff --git a/ref-test/app/models/entry.py b/ref-test/app/models/entry.py index e0cd2c9..b9d07da 100644 --- a/ref-test/app/models/entry.py +++ b/ref-test/app/models/entry.py @@ -5,8 +5,6 @@ from .test import Test from flask_login import current_user from flask_mail import Message -from smtplib import SMTPException -from sqlalchemy.exc import SQLAlchemyError from sqlalchemy_json import MutableJson from datetime import datetime, timedelta diff --git a/ref-test/app/models/test.py b/ref-test/app/models/test.py index ad82b62..1bdc160 100644 --- a/ref-test/app/models/test.py +++ b/ref-test/app/models/test.py @@ -2,7 +2,6 @@ from ..extensions import db from ..tools.logs import write from flask_login import current_user -from sqlalchemy.exc import SQLAlchemyError from sqlalchemy_json import MutableJson from datetime import date, datetime diff --git a/ref-test/app/models/user.py b/ref-test/app/models/user.py index f1b96c3..8101e97 100644 --- a/ref-test/app/models/user.py +++ b/ref-test/app/models/user.py @@ -6,8 +6,6 @@ from flask import jsonify, session from flask.helpers import flash, url_for from flask_login import current_user, login_user, logout_user, UserMixin from flask_mail import Message -from smtplib import SMTPException -from sqlalchemy.exc import SQLAlchemyError from werkzeug.security import check_password_hash, generate_password_hash import secrets diff --git a/ref-test/app/quiz/views.py b/ref-test/app/quiz/views.py index 788abcc..11edaab 100644 --- a/ref-test/app/quiz/views.py +++ b/ref-test/app/quiz/views.py @@ -6,7 +6,6 @@ from ..tools.test import redirect_if_started from flask import Blueprint, jsonify, render_template, request, session from flask.helpers import abort, flash, redirect, url_for -from sqlalchemy.exc import SQLAlchemyError from datetime import datetime diff --git a/ref-test/app/tools/auth.py b/ref-test/app/tools/auth.py index f740448..7b1b942 100644 --- a/ref-test/app/tools/auth.py +++ b/ref-test/app/tools/auth.py @@ -4,7 +4,6 @@ from ..tools.logs import write from flask.helpers import abort, flash, redirect, url_for from flask_login import current_user -from sqlalchemy.exc import SQLAlchemyError from functools import wraps diff --git a/ref-test/app/tools/data.py b/ref-test/app/tools/data.py index 783e7a3..3621586 100644 --- a/ref-test/app/tools/data.py +++ b/ref-test/app/tools/data.py @@ -3,7 +3,6 @@ from ..tools.logs import write from flask import current_app as app from flask.helpers import abort, flash, redirect, url_for -from sqlalchemy.exc import SQLAlchemyError import json from pathlib import Path