Use shared item axis context in role routes

This commit is contained in:
2026-06-27 18:18:47 +02:00
parent 867916ee51
commit 6a65f7d35c
11 changed files with 100 additions and 52 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ import random
from typing import Any
try:
from . import item_axis_policy
from .hardcore_role_anal import build_anal_or_double_role_graph
from .hardcore_role_climax import build_climax_role_graph
from .hardcore_role_fallback import (
@@ -23,6 +24,7 @@ try:
from .hardcore_role_outercourse import build_outercourse_role_graph
from .hardcore_role_penetration import build_penetration_role_graph
except ImportError: # Allows local smoke tests with `python -c`.
import item_axis_policy
from hardcore_role_anal import build_anal_or_double_role_graph
from hardcore_role_climax import build_climax_role_graph
from hardcore_role_fallback import (
@@ -85,7 +87,7 @@ def build_hardcore_role_graph(
men = participants["men"]
people = participants["people"]
slug = str(subcategory.get("slug") or subcategory.get("name") or "").lower()
item_text = " ".join((item_axis_values or {}).values()).lower()
item_text = item_axis_policy.context_text(axis_values=item_axis_values)
def any_person(exclude: set[str] | None = None) -> str:
exclude = exclude or set()