feat: init CourseUpdates backend CRUD

This commit is contained in:
swve 2024-04-15 22:36:02 +02:00
parent 171feabe99
commit d1a620b2e2
4 changed files with 260 additions and 2 deletions

View file

@ -5,7 +5,7 @@ async def check_element_type(element_uuid):
"""
Check if the element is a course, a user, a house or a collection, by checking its prefix
"""
if element_uuid.startswith("course_"):
if element_uuid.startswith("course_") or element_uuid.startswith("courseupdate_"):
return "courses"
elif element_uuid.startswith("user_"):
return "users"