MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _split_name_from_nick

Function _split_name_from_nick

Scripts/ButSystem.py:15218–15230  ·  view source on GitHub ↗

Split a nickname into first/last. Ensures last is non-empty.

(nick: str, fallback_last: str)

Source from the content-addressed store, hash-verified

15216"""
15217 conn = db_connect()
15218 row = conn.execute("SELECT role FROM group_members WHERE group_id=? AND username=?", (gid, username)).fetchone()
15219 conn.close()
15220 return row["role"] if row else None
15221
15222@app.route("/groups")
15223@login_required
15224def groups():
15225 """List groups for the current user (with auto-heal schema)."""
15226 me = current_user()
15227 # Ensure group tables exist even on upgraded databases
15228 try:
15229 db_init()
15230 except Exception:
15231 pass
15232
15233 def _fetch_rows():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected