Skip to content

Commit 7b5846a

Browse files
fix: fetch future course dates for calendar (#444)
1 parent 6e59c7f commit 7b5846a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/java/org/openedx/core/data/api/CourseApi.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ interface CourseApi {
6161
)
6262

6363
@GET("/api/course_home/v1/dates/{course_id}")
64-
suspend fun getCourseDates(@Path("course_id") courseId: String): CourseDates
64+
suspend fun getCourseDates(
65+
@Path("course_id") courseId: String,
66+
@Query("allow_not_started_courses") allowNotStartedCourses: Boolean = true
67+
): CourseDates
6568

6669
@POST("/api/course_experience/v1/reset_course_deadlines")
6770
suspend fun resetCourseDates(@Body courseBody: Map<String, String>): ResetCourseDates

0 commit comments

Comments
 (0)