Function
episode_sort_key
(item: Tuple[str, List[Dict[str, Any]]])
Source from the content-addressed store, hash-verified
| 505 | |
| 506 | |
| 507 | def episode_sort_key(item: Tuple[str, List[Dict[str, Any]]]) -> Tuple[str, str, str]: |
| 508 | episode_id, rows = item |
| 509 | first = rows[0] if rows else {} |
| 510 | return ( |
| 511 | str(first.get("user_id") or episode_id.split("::", 1)[0]), |
| 512 | str(first.get("date") or ""), |
| 513 | episode_id, |
| 514 | ) |
| 515 | |
| 516 | |
| 517 | def rerank_episodes( |
Callers
nothing calls this directly
Tested by
no test coverage detected