bsw@1649: local suggestion_id = param.get("suggestion_id", atom.integer) bsw@1649: local degree = param.get("degree", atom.number) bsw@1649: local fulfilled = param.get("fulfilled", atom.boolean) bsw@1649: bsw@1649: print(degree, fulfilled) bsw@1649: bsw@1649: slot.set_layout() bsw@1649: bsw@1649: if Opinion:update(suggestion_id, app.session.member_id, degree, fulfilled) then bsw@1649: slot.put_into("data", "ok") bsw@1649: else bsw@1649: request.set_status("500 Internal Server Error") bsw@1649: end bsw@1649: