Sort imports

This commit is contained in:
lluni 2024-01-04 19:39:41 +01:00
parent cf2d9b8af6
commit eb34c4cd8a
Signed by: lluni
GPG key ID: ACEEB468BC325D35
3 changed files with 7 additions and 3 deletions

View file

@ -2,9 +2,11 @@
# ----- imports ----- #
from os import getenv
from dotenv import load_dotenv
from mastodon import Mastodon, MastodonRatelimitError
from os import getenv
def cleanup(offset: int = 200, num_batches: int = 10, limit: int = 40, start_id: int | None = None):
"""Delete old posts without any interactions.

View file

@ -1,8 +1,9 @@
"""Initialize Mastodon.py, login the account and register an application"""
from os import getenv
from dotenv import load_dotenv
from mastodon import Mastodon
from os import getenv
# ----- load .env ----- #

View file

@ -1,8 +1,9 @@
"""Initialize PRAW"""
from os import getenv
import praw
from dotenv import load_dotenv
from os import getenv
# ----- load .env ----- #