Use shared item axis context in role routes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user