()
| 700 | |
| 701 | |
| 702 | def all_user_ids() -> List[str]: |
| 703 | init_wiki_schema() |
| 704 | candidate_tables = [table for table in ("profiles", "behavior_logs", "wiki_nodes") if table_exists(table)] |
| 705 | if not candidate_tables: |
| 706 | return [] |
| 707 | query = "\nUNION\n".join(f"SELECT user_id FROM {table}" for table in candidate_tables) |
| 708 | conn = db_ops.get_connection() |
| 709 | rows = conn.execute(f"{query}\nORDER BY user_id").fetchall() |
| 710 | conn.close() |
| 711 | return [str(row["user_id"]) for row in rows if str(row["user_id"] or "").strip()] |
| 712 | |
| 713 | |
| 714 | def stats(user_id: str) -> Dict[str, Any]: |
nothing calls this directly
no test coverage detected