From: Adam Dullage Date: Wed, 24 Aug 2022 06:16:45 +0000 (+0100) Subject: Sort imports X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=359b3212ef093c4f1f09c9ea5e1ce55f7bf13859;p=flatnotes.git Sort imports --- diff --git a/flatnotes/flatnotes.py b/flatnotes/flatnotes.py index ac84279..0b10203 100644 --- a/flatnotes/flatnotes.py +++ b/flatnotes/flatnotes.py @@ -5,6 +5,7 @@ from datetime import datetime from typing import List, Tuple import whoosh +from helpers import empty_dir, strip_ext from whoosh import writing from whoosh.analysis import CharsetFilter, StemmingAnalyzer from whoosh.fields import ID, STORED, TEXT, SchemaClass @@ -13,8 +14,6 @@ from whoosh.qparser import MultifieldParser from whoosh.searching import Hit from whoosh.support.charset import accent_map -from helpers import empty_dir, strip_ext - MARKDOWN_EXT = ".md" INDEX_SCHEMA_VERSION = "2" diff --git a/flatnotes/main.py b/flatnotes/main.py index cc80dfa..2ae7ef0 100644 --- a/flatnotes/main.py +++ b/flatnotes/main.py @@ -10,9 +10,9 @@ from auth import ( validate_token, ) from error_responses import ( - title_exists_response, - note_not_found_response, invalid_title_response, + note_not_found_response, + title_exists_response, ) from fastapi import Depends, FastAPI, HTTPException from fastapi.responses import HTMLResponse