Feature requestFrontendGood First Issue
Repository metrics
- Stars
- (237 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
It is very easy and nice to download student submissions. However, if you want to download more than a single submission for a staff member, it's not possible. Adding this feature would be very convenient. I've managed to hack together a solution for people to use until this is available, but it's not ideal.
wget --keep-session-cookies \
--save-cookies ${TEMP_COOKIES_FILE} \
--post-data 'login='${USER_NAME}'&password='${PASS_WORD}'&@authid=0' \
-q \
-O /dev/null \
http://${IP_ADDRESS}
wget --load-cookies ${TEMP_COOKIES_FILE} \
-q \
-O- \
http://${IP_ADDRESS}/admin/${COURSE_NAME}/student/${STUDENT_ID}?csv='' \
| dos2unix \
| tail -n +2 \
| cut -d ',' -f 1,5 \
| sort -t ',' -k 1 \
> ${TEMP_CSV_FILE}
while read CSV_LINE
do
TASK=`printf "%s" "${CSV_LINE}" | cut -d ',' -f 1`
SUBMISSION_ID=`printf "%s" "${CSV_LINE}" | cut -d ',' -f 2`
printf "%s " "${TASK}"
wget --load-cookies ${TEMP_COOKIES_FILE} \
-q \
-O- \
http://${IP_ADDRESS}/admin/${COURSE_NAME}/download?submission=${SUBMISSION_ID} \
> ${TASK}.tgz
done < ${TEMP_CSV_FILE}
rm -f ${TEMP_CSV_FILE} ${TEMP_COOKIES_FILE}