|
|
|
@ -33,7 +33,7 @@ def create_course(): |
|
|
|
|
except KeyError: |
|
|
|
|
return jsonify({'message': 'Course name cannot be empty'}), 401 |
|
|
|
|
|
|
|
|
|
course_description: str = form_data.get('course_name', '') |
|
|
|
|
course_description: str = form_data.get('course_description', '') |
|
|
|
|
category_id: uuid.UUID = uuid.UUID(form_data['category_uuid']) |
|
|
|
|
pages_required_for_community: int = int(form_data['community_unlock_at_pages']) # TODO: Add this field to model |
|
|
|
|
|
|
|
|
|