Stream a group voice message.
(vid: int)
| 15057 | conn.execute("INSERT INTO dm_call_signals(call_id, sender, kind, payload, created_at) VALUES(?,?,?,?,?)", |
| 15058 | (call_id, me, "hangup", "{}", now_z())) |
| 15059 | conn.commit() |
| 15060 | conn.close() |
| 15061 | return jsonify({"ok": True}) |
| 15062 | |
| 15063 | |
| 15064 | |
| 15065 | |
| 15066 | # --------------------------- |
| 15067 | # Live location sharing |
| 15068 | # --------------------------- |
| 15069 | |
| 15070 | @app.route("/locations") |
| 15071 | @login_required |
| 15072 | def live_locations(): |
| 15073 | """live_locations. |
| 15074 | |
| 15075 | Route handler or application helper. |
| 15076 | |
| 15077 | This docstring was expanded to make future maintenance easier. |
| 15078 | |
| 15079 | Returns: |
| 15080 | Varies. |
| 15081 | """ |
| 15082 | me = current_user() |
| 15083 | return render_template("live_locations.html", title="Live Locations", me=me) |
| 15084 | |
| 15085 | @app.route("/api/location/update", methods=["POST"]) |
| 15086 | @login_required |
| 15087 | def api_location_update(): |
| 15088 | """api_location_update. |
| 15089 | |
| 15090 | Route handler or application helper. |
| 15091 | |
| 15092 | This docstring was expanded to make future maintenance easier. |
| 15093 | |
| 15094 | Returns: |
| 15095 | Varies. |
| 15096 | """ |
nothing calls this directly
no test coverage detected