mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: collections and courses remaining bugs
This commit is contained in:
parent
4245e61df8
commit
212c50768f
8 changed files with 155 additions and 113 deletions
|
|
@ -5,7 +5,6 @@ async def check_element_type(element_id):
|
|||
"""
|
||||
Check if the element is a course, a user, a house or a collection, by checking its prefix
|
||||
"""
|
||||
print("element_id", element_id)
|
||||
if element_id.startswith("course_"):
|
||||
return "courses"
|
||||
elif element_id.startswith("user_"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue