mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 15:50:59 +00:00
16 lines
416 B
JSON
16 lines
416 B
JSON
from aspen import Response
|
|
from gittip import db
|
|
from gittip.utils import wrap
|
|
|
|
# ========================================================================== ^L
|
|
|
|
if user.ANON:
|
|
raise Response(404)
|
|
request.allow("POST")
|
|
|
|
statement = request.body["statement"]
|
|
db.execute( "UPDATE participants SET statement=%s WHERE id=%s"
|
|
, (statement, user.id)
|
|
)
|
|
response.body = {"statement": wrap(statement)}
|