From e426a3ee4e449e85dc87695c38a17b098767ca55 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Fri, 28 Feb 2025 11:04:14 -0800 Subject: [PATCH] feat: e621 config change --- config.toml.example | 2 +- konawall/sources/e621.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml.example b/config.toml.example index ecc5a5a..317fffc 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,6 +1,6 @@ interval = 300 rotate = true -api_key = "" +e621_api_key = "" source = "konachan" tags = [ "rating:s" diff --git a/konawall/sources/e621.py b/konawall/sources/e621.py index 46523c7..c7d9d24 100644 --- a/konawall/sources/e621.py +++ b/konawall/sources/e621.py @@ -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: