mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
10 lines
216 B
Python
10 lines
216 B
Python
|
|
"""Phase 21 — Graphene resolver benign control."""
|
||
|
|
import re
|
||
|
|
|
||
|
|
_NYX_ADAPTER_MARKER = "import graphene"
|
||
|
|
|
||
|
|
|
||
|
|
def resolve_user(self, info, id):
|
||
|
|
safe = re.sub(r"[^A-Za-z0-9_-]", "", str(id))
|
||
|
|
return "user-" + safe
|