MCPcopy Create free account
hub / github.com/SurceBeats/Atlas / get_current_location

Function get_current_location

pymodules/__frontendAPI_location_data.py:130–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129 @app.route("/api/current-location")
130 def get_current_location():
131 galaxy_data = session.get("galaxy")
132 system_index = session.get("system")
133
134 if not galaxy_data or system_index is None:
135 return jsonify({"error": "No current location in session"})
136
137 return jsonify({"galaxy_coordinates": galaxy_data["coordinates"], "system_index": system_index})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected