From ad7922c68f250045ce1733605aabaabe881629f6 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 17 Nov 2024 14:39:08 +0100 Subject: [PATCH] format imports --- src/app.py | 1 + src/routes/index.py | 5 +++-- src/routes/login.py | 3 ++- src/routes/read.py | 3 ++- src/routes/set_timezone.py | 3 ++- src/utils/misc.py | 1 + 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/app.py b/src/app.py index 28e35d7..02116be 100644 --- a/src/app.py +++ b/src/app.py @@ -3,6 +3,7 @@ from glob import glob from os import mkdir, urandom from flask import Flask, session + from utils.config import Config app = Flask(__name__, static_url_path="/") diff --git a/src/routes/index.py b/src/routes/index.py index ea39417..6a44e67 100644 --- a/src/routes/index.py +++ b/src/routes/index.py @@ -1,8 +1,9 @@ from flask import Blueprint, flash, redirect, render_template, request -from utils.config import Config -from utils.misc import create_post, fresh_file_id, get_posts from werkzeug import Response +from utils.config import Config +from utils.misc import create_post, fresh_file_id, get_post_cdate, get_posts + name = __name__.split(".")[-1] router = Blueprint(name, __name__) diff --git a/src/routes/login.py b/src/routes/login.py index dceaf3d..918db05 100644 --- a/src/routes/login.py +++ b/src/routes/login.py @@ -1,7 +1,8 @@ from flask import Blueprint, flash, redirect, render_template, request -from utils.config import Config from werkzeug import Response +from utils.config import Config + name = __name__.split(".")[-1] router = Blueprint(name, __name__) diff --git a/src/routes/read.py b/src/routes/read.py index a719efd..14bff90 100644 --- a/src/routes/read.py +++ b/src/routes/read.py @@ -1,7 +1,8 @@ from flask import Blueprint, flash, redirect, render_template +from werkzeug import Response + from utils.config import Config from utils.misc import delete_post, get_post, post_file_id, post_filename -from werkzeug import Response name = __name__.split(".")[-1] router = Blueprint(name, __name__) diff --git a/src/routes/set_timezone.py b/src/routes/set_timezone.py index f073e66..79eec75 100644 --- a/src/routes/set_timezone.py +++ b/src/routes/set_timezone.py @@ -1,7 +1,8 @@ from flask import Blueprint, jsonify, request, session -from utils.config import Config from werkzeug import Response +from utils.config import Config + name = __name__.split(".")[-1] router = Blueprint(name, __name__) diff --git a/src/utils/misc.py b/src/utils/misc.py index 6ec90ce..c831032 100644 --- a/src/utils/misc.py +++ b/src/utils/misc.py @@ -6,6 +6,7 @@ from time import ctime from flask import session from pytz import timezone + from utils.config import Config