diff --git a/activitypub.py b/activitypub.py index 15e64cb..d293ba3 100644 --- a/activitypub.py +++ b/activitypub.py @@ -10,9 +10,9 @@ from typing import Dict from typing import List from typing import Optional -from dateutil import parser from bson.objectid import ObjectId from cachetools import LRUCache +from dateutil import parser from feedgen.feed import FeedGenerator from html2text import html2text from little_boxes import activitypub as ap diff --git a/app.py b/app.py index dbec07f..ce0efea 100644 --- a/app.py +++ b/app.py @@ -84,11 +84,11 @@ from config import USERNAME from config import VERSION from config import _drop_db from poussetaches import PousseTaches +from tasks import Tasks from utils import opengraph from utils.key import get_secret_key from utils.lookup import lookup from utils.media import Kind -from tasks import Tasks p = PousseTaches( os.getenv("MICROBLOGPUB_POUSSETACHES_HOST", "http://localhost:7991"), diff --git a/utils/media.py b/utils/media.py index aba132c..d2e3d42 100644 --- a/utils/media.py +++ b/utils/media.py @@ -6,11 +6,10 @@ from io import BytesIO from typing import Any from typing import Dict -from little_boxes import activitypub as ap - import gridfs import piexif import requests +from little_boxes import activitypub as ap from PIL import Image