refactor: remove unused imports and reorganize module-level constants across multiple routers
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user