diff --git a/cleanup.py b/cleanup.py index 99682fa..b732ff9 100644 --- a/cleanup.py +++ b/cleanup.py @@ -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. diff --git a/masto.py b/masto.py index 552f6dc..39c6d6d 100644 --- a/masto.py +++ b/masto.py @@ -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 ----- # diff --git a/reddit.py b/reddit.py index 43a8d61..861e55b 100644 --- a/reddit.py +++ b/reddit.py @@ -1,8 +1,9 @@ """Initialize PRAW""" +from os import getenv + import praw from dotenv import load_dotenv -from os import getenv # ----- load .env ----- #