(cur)
| 26 | |
| 27 | |
| 28 | def _mapping_from_cursor(cur): |
| 29 | rv = {} |
| 30 | for path, alt, lang, type, title in cur.fetchall(): |
| 31 | rv.setdefault(path, []).append( |
| 32 | { |
| 33 | "id": _id_from_path(path), |
| 34 | "path": path, |
| 35 | "alt": alt, |
| 36 | "type": type, |
| 37 | "lang": lang, |
| 38 | "title": title, |
| 39 | } |
| 40 | ) |
| 41 | return rv |
| 42 | |
| 43 | |
| 44 | def _find_best_info(infos, alt, lang): |
no test coverage detected