Rewrite the dump_past_answers script (renamed to dump-past-answers.pl). #2302
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This script currently does not work well (if at all). This gets the script working again with better help and options.
Note the following changes:
The script no longer saves ids (course id, set id, user id, etc) as useless hashes. I don't know why it was thought that doing so was a good idea.
The script does not gzip the resulting csv file. You can do that on your own if so desired.
The script does not have an upload option (that uploads to wwdata@52.88.32.79). You can upload it to where you want on your own if so desired.
The unix timestamp for the time at which the script is executed is no longer saved in each row of the CSV file. It is part of the default file name if you want it.
Past answers from gateway quiz versions are also dumped. I think it was intended that they would be dumped before, but it wasn't working.
Past answers from problems with more than one answer in them are now dumped. It certainly was intended that this be done before, but wasn't because of a bug in the script.