mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: implement editor preview functionality
This commit is contained in:
parent
5b2187c311
commit
0a38f5bda7
4 changed files with 17 additions and 6 deletions
|
|
@ -118,7 +118,7 @@ async def get_course_meta(request: Request, course_id: str, current_user: Public
|
|||
for chapter in chapters:
|
||||
chapters_list_with_activities.append(
|
||||
{"id": chapters[chapter]["id"], "name": chapters[chapter]["name"], "activities": [activities_list[activity] for activity in chapters[chapter]["activityIds"]]})
|
||||
course = Course(**course)
|
||||
course = CourseInDB(**course)
|
||||
|
||||
# Get activity by user
|
||||
trail = await trails.find_one(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue