Sort imports
This commit is contained in:
parent
cf2d9b8af6
commit
eb34c4cd8a
3 changed files with 7 additions and 3 deletions
|
@ -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.
|
||||
|
|
3
masto.py
3
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 ----- #
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
"""Initialize PRAW"""
|
||||
|
||||
from os import getenv
|
||||
|
||||
import praw
|
||||
from dotenv import load_dotenv
|
||||
from os import getenv
|
||||
|
||||
# ----- load .env ----- #
|
||||
|
||||
|
|
Loading…
Reference in a new issue