mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init CourseUpdates backend CRUD
This commit is contained in:
parent
171feabe99
commit
d1a620b2e2
4 changed files with 260 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue