any_admin_exists. Internal helper function. This docstring was added automatically to improve maintainability. Returns: Varies.
()
| 16980 | |
| 16981 | imported = 0 |
| 16982 | for p in profiles: |
| 16983 | first = (p.get("first") or "").strip() |
| 16984 | last = (p.get("last") or "").strip() |
| 16985 | info = (p.get("info") or "").strip() |
| 16986 | opt = p.get("optional") or {} |
| 16987 | if not isinstance(opt, dict): |
| 16988 | opt = {} |
| 16989 | if not (first or last or info): |
| 16990 | continue |
| 16991 | fp = (first.lower(), last.lower(), info.lower()) |
| 16992 | if fp in existing_fp: |
| 16993 | continue |
| 16994 | |
| 16995 | now = now_z() |
| 16996 | cur = conn.cursor() |
| 16997 | cur.execute( |
| 16998 | "INSERT INTO profiler_entries(owner, first_enc, last_enc, info_enc, optional_enc, created_at, updated_at) VALUES(?,?,?,?,?,?,?)", |