from tornado import web
from json import dumps, loads
from utils.web3 import list_students, create_student


class ContentHandler(web.RequestHandler):

    def post(self):
        student_id = self.get_argument('student_id')
        res = create_student(student_id)
        self.write(dumps(res))

    def get(self):
        student_list = list_students()
        self.write(dumps(student_list))

07889fad3e3906b3ca8f960ad0b4b2583509cd20
<mask token>


class ContentHandler(web.RequestHandler):
    <mask token>
    <mask token>

<mask token>


class ContentHandler(web.RequestHandler):

    def post(self):
        student_id = self.get_argument('student_id')
        res = create_student(student_id)
        self.write(dumps(res))
    <mask token>

<mask token>


class ContentHandler(web.RequestHandler):

    def post(self):
        student_id = self.get_argument('student_id')
        res = create_student(student_id)
        self.write(dumps(res))

    def get(self):
        student_list = list_students()
        self.write(dumps(student_list))

from tornado import web
from json import dumps, loads
from utils.web3 import list_students, create_student


class ContentHandler(web.RequestHandler):

    def post(self):
        student_id = self.get_argument('student_id')
        res = create_student(student_id)
        self.write(dumps(res))

    def get(self):
        student_list = list_students()
        self.write(dumps(student_list))
