refactor: remove unused imports and reorganize module-level constants across multiple routers

This commit is contained in:
2026-06-09 18:02:50 +00:00
parent d95541f3c1
commit 19795c6a0a
38 changed files with 78 additions and 118 deletions
-3
View File
@@ -11,7 +11,6 @@ from faker import Faker
from devplacepy.services.bot.browser import BotBrowser
from devplacepy.services.bot.config import (
CATEGORIES,
FEED_TOPICS,
GIST_LANGUAGES,
PERSONAS,
@@ -1828,7 +1827,6 @@ class DevPlaceBot:
on_news_detail = "/news/" in curl
on_news_list = bool(re.search(r"/news(\?|$)", curl))
on_notifications = "/notifications" in curl
on_feed = "/feed" in curl or curl.strip("/") == self.base_url
actions = 0
did_post = session_posted
@@ -1846,7 +1844,6 @@ class DevPlaceBot:
actions += 1
curl = await b.url()
page_text = (await b.html()).lower()
on_feed = "/feed" in curl
on_post = "/posts/" in curl
continue