feat: e621 config change

This commit is contained in:
Kat Inskip 2025-02-28 11:04:14 -08:00
parent 8e4f5895b0
commit e426a3ee4e
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
interval = 300
rotate = true
api_key = ""
e621_api_key = ""
source = "konachan"
tags = [
"rating:s"

View file

@ -13,7 +13,7 @@ Turn a list of tags and a count into a list of URLs to download from
:returns: A list of URLs to download from
"""
def request_posts(count: int, tags: list, config) -> list:
api_key = config["api_key"]
api_key = config["e621_api_key"]
logging.debug(f"request_posts() called with count={count}, tags=[{', '.join(tags)}]")
# Make sure we get a different result every time by using "order:random" as a tag
if "order:random" not in tags: