Skip to content

Commit f195747

Browse files
committed
fix: change python to python3 and add --replace in import_coursepacks.sh
1 parent 02d406b commit f195747

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/import_coursepacks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if command -v docker >/dev/null 2>&1; then
3131
for course_slug in "${COURSES[@]}"; do
3232
echo "[import] Importing $course_slug via docker compose..."
3333
docker compose "${COMPOSE_ARGS[@]}" exec "${SERVICE}" \
34-
python manage.py import_coursepack --course-slug "${course_slug}" --create-class
34+
python3 manage.py import_coursepack --course-slug "${course_slug}" --create-class --replace
3535
done
3636
echo "[import] Done!"
3737
exit 0
@@ -49,7 +49,7 @@ fi
4949
cd "${ROOT_DIR}/services/classhub"
5050
for course_slug in "${COURSES[@]}"; do
5151
echo "[import] Importing $course_slug locally..."
52-
python manage.py import_coursepack --course-slug "${course_slug}" --create-class
52+
python3 manage.py import_coursepack --course-slug "${course_slug}" --create-class --replace
5353
done
5454

5555
echo "[import] Done!"

0 commit comments

Comments
 (0)