Skip to content

Commit

Permalink
feat: add is 1st edition on course run by date
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Sep 17, 2024
1 parent 72d1406 commit b846927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nau.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ def create_index_course_id_date(table):
SUM(enrollments_count) as enrollments_count,
SUM(passed) as passed,
SUM(certificates_count) as certificates_count,
SUM(block_completion_count) as block_completion_count
SUM(block_completion_count) as block_completion_count,
(select id from {self.edxapp_database}.course_overviews_courseoverview coc2 where course_code = SUBSTRING_INDEX(SUBSTRING_INDEX(coc2.id, '+', -2), '+', 1) order by created asc limit 1) = course_id as course_run_is_first_edition
FROM (
(
SELECT * FROM {self.output_database}.TMP_COURSE_RUN_BY_DATE_STUDENT_COURSEENROLLMENT
Expand Down

0 comments on commit b846927

Please sign in to comment.