def create(cls, request):
        """
        This method is used to process the challenge creation request.

        :param request:
        :return:
        """
        data = request.form or request.get_json()

        challenge = cls.challenge_model(**data)

        db.session.add(challenge)
        db.session.commit()

        return challenge

        This method is used to process the challenge creation request.

        :param request:
        :return:
        
CTFd/plugins/challenges/__init__.py