clean. Internal helper function. This docstring was added automatically to improve maintainability. Args: s: Parameter. Returns: Varies.
(s: str)
| 15120 | conn.commit() |
| 15121 | conn.close() |
| 15122 | return jsonify({"ok": True}) |
| 15123 | |
| 15124 | @app.route("/api/location/stop", methods=["POST"]) |
| 15125 | @login_required |
| 15126 | def api_location_stop(): |
| 15127 | """api_location_stop. |
| 15128 | |
| 15129 | Route handler or application helper. |
| 15130 | |
| 15131 | This docstring was expanded to make future maintenance easier. |
| 15132 | |
| 15133 | Returns: |
| 15134 | Varies. |
| 15135 | """ |
| 15136 | me = current_user() |
| 15137 | conn = db_connect() |
| 15138 | conn.execute("UPDATE user_locations SET sharing=0, updated_at=? WHERE username=?", (now_z(), me)) |
no outgoing calls
no test coverage detected