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 ----- #
|
# ----- imports ----- #
|
||||||
|
|
||||||
|
from os import getenv
|
||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from mastodon import Mastodon, MastodonRatelimitError
|
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):
|
def cleanup(offset: int = 200, num_batches: int = 10, limit: int = 40, start_id: int | None = None):
|
||||||
"""Delete old posts without any interactions.
|
"""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"""
|
"""Initialize Mastodon.py, login the account and register an application"""
|
||||||
|
|
||||||
|
from os import getenv
|
||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from mastodon import Mastodon
|
from mastodon import Mastodon
|
||||||
from os import getenv
|
|
||||||
|
|
||||||
# ----- load .env ----- #
|
# ----- load .env ----- #
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
"""Initialize PRAW"""
|
"""Initialize PRAW"""
|
||||||
|
|
||||||
|
from os import getenv
|
||||||
|
|
||||||
import praw
|
import praw
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from os import getenv
|
|
||||||
|
|
||||||
# ----- load .env ----- #
|
# ----- load .env ----- #
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue