Created
March 18, 2014 02:26
-
-
Save rickcnagy/9612496 to your computer and use it in GitHub Desktop.
Clear a section's gradebook by deleting ALL assignments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
import qs | |
from tqdm import * | |
def main(): | |
section_id = "528351" | |
assignments = qs.get_assignments(section_id) | |
for i in trange(0, len(assignments)): | |
qs.delete_assignment(section_id, assignments[i]['id']) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment