Function
episode_sort_key
(item: Tuple[str, List[Dict[str, Any]]])
Source from the content-addressed store, hash-verified
| 714 | |
| 715 | |
| 716 | def episode_sort_key(item: Tuple[str, List[Dict[str, Any]]]) -> Tuple[str, str, str]: |
| 717 | episode_id, rows = item |
| 718 | first = rows[0] if rows else {} |
| 719 | return ( |
| 720 | str(first.get("user_id") or episode_id.split("::", 1)[0]), |
| 721 | str(first.get("date") or ""), |
| 722 | episode_id, |
| 723 | ) |
| 724 | |
| 725 | |
| 726 | def rerank_episodes( |
Callers
nothing calls this directly
Tested by
no test coverage detected