- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
class UserCreate(MethodView):
"""Data create."""
def post(self):
"""Создание данных."""
q = 1
values = {}
values['person'] = request.json_schema["person"]
values['date_opr'] = request.json_schema["dateOpr"]
values['year_input'] = request.json_schema["yearInput"]
values['vuz'] = request.json_schema["vuz"]
values['person_id'] = request.json_schema["personId"]
q = 1
with session_scope() as session:
id = candidate_service.create_item(session, values)
return {"msg": "Данные созданы", "data": {"id": id}}