Commit 504b2f6
Changed files (1)
src
history
src/history/utils.py
@@ -89,10 +89,6 @@ def fine_grained_check(info: dict) -> bool:
keywords = [x.strip() for x in os.environ[f"HISTORY_{cid}_SKIP_KEYWORDS"].split(",") if x.strip()]
if any(x in info["text"] for x in keywords):
return False
- if os.getenv("HISTORY_D1_ONLY_SYNC_CHATS") and cid not in strings_list(env_key="HISTORY_D1_ONLY_SYNC_CHATS"):
- return False
- if os.getenv("HISTORY_TURSO_ONLY_SYNC_CHATS") and cid not in strings_list(env_key="HISTORY_TURSO_ONLY_SYNC_CHATS"):
- return False
return True