From 907951a49f50446de18e727a9ddc5163d5ecbf20 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 2 Nov 2023 18:47:52 +0100 Subject: [PATCH] Sort imports --- advlabdb/actions.py | 3 ++- advlabdb/adminModelViews.py | 6 +++++- advlabdb/database_import.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/advlabdb/actions.py b/advlabdb/actions.py index 19cc2ba..8ec8a56 100644 --- a/advlabdb/actions.py +++ b/advlabdb/actions.py @@ -1,8 +1,9 @@ +import subprocess from datetime import datetime + from flask import flash from flask_login import current_user from sqlalchemy import select -import subprocess from . import data_dir from .models import Assistant, Semester, User, db diff --git a/advlabdb/adminModelViews.py b/advlabdb/adminModelViews.py index 7ddcdd6..bfc7a26 100644 --- a/advlabdb/adminModelViews.py +++ b/advlabdb/adminModelViews.py @@ -28,7 +28,11 @@ from wtforms.validators import URL, DataRequired, Email, NumberRange, Optional from wtforms.widgets import NumberInput from . import data_dir, user_datastore -from .actions import deactivate_assistants, update_final_experiment_and_part_marks, manual_backup +from .actions import ( + deactivate_assistants, + manual_backup, + update_final_experiment_and_part_marks, +) from .admin_link_formatters import ( admin_formatter, appointment_date_formatter, diff --git a/advlabdb/database_import.py b/advlabdb/database_import.py index 55701eb..dc30349 100644 --- a/advlabdb/database_import.py +++ b/advlabdb/database_import.py @@ -4,8 +4,8 @@ from pathlib import Path from flask import flash from sqlalchemy import select -from .exceptions import DatabaseImportException from .actions import backup +from .exceptions import DatabaseImportException from .models import ( Appointment, Assistant,