Skip to content

Commit e923554

Browse files
committed
#OPPIA-1644 - sync courses
1 parent a42a977 commit e923554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oppia/models/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,6 @@ def get_lang(self):
735735
@receiver(post_save, sender=Course)
736736
def uploaded_course_save_to_external(sender, instance, **kwargs):
737737
if settings.OPPIA_EXTERNAL_STORAGE:
738-
copy_from = os.path.join(settings.COURSE_ROOT, instance.filename)
738+
copy_from = os.path.join(settings.COURSE_UPLOAD_DIR, instance.filename)
739739
copy_to = os.path.join(settings.OPPIA_EXTERNAL_STORAGE_COURSE_ROOT, instance.filename)
740740
copyfile(copy_from, copy_to)

0 commit comments

Comments
 (0)