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

Function profile_edit

Scripts/ButSystem.py:10907–10909  ·  view source on GitHub ↗

Edit your profile fields.

()

Source from the content-addressed store, hash-verified

10905 if _rate_limit_hit("weather_forecast", _client_ip() or "?", limit=60, window_sec=60):
10906 return jsonify({"ok": False, "error": "rate_limited"}), 429
10907 payload = request.get_json(silent=True) or {}
10908 try:
10909 latitude = float(payload.get("latitude"))
10910 longitude = float(payload.get("longitude"))
10911 except Exception:
10912 return jsonify({"ok": False, "error": "invalid_coordinates"}), 400

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected