]> code.communitydata.science - coldcallbot-discord.git/blobdiff - download_student_info.py
updated assessment code for new class
[coldcallbot-discord.git] / download_student_info.py
index 0b6a98fc90c7a9550e6c5f51bde517f158953693..8a448b91d5ea313f485d6a550ae9f8062d9d60f4 100755 (executable)
@@ -9,7 +9,7 @@ with open("configuration.json", 'r') as config_file:
 base_url = 'https://docs.google.com/spreadsheets/d/{id}/export?gid={gid}&format=tsv'
 
 student_info_url = base_url.format(id=config["student_info_gsheet_id"], gid=config["student_info_gsheet_gid"])
 base_url = 'https://docs.google.com/spreadsheets/d/{id}/export?gid={gid}&format=tsv'
 
 student_info_url = base_url.format(id=config["student_info_gsheet_id"], gid=config["student_info_gsheet_gid"])
-subprocess.run(["wget", url, "-O", config["student_info_file"]], check=True)
+subprocess.run(["wget", student_info_url, "-O", config["student_info_file"]], check=True)
 
 
-optout_url = base_url.format(id=config["optout_info_gsheet_id"], gid=config["output_info_gsheet_gid"])
+optout_url = base_url.format(id=config["optout_gsheet_id"], gid=config["optout_gsheet_gid"])
 subprocess.run(["wget", optout_url, "-O", config["optout_file"]], check=True)
 subprocess.run(["wget", optout_url, "-O", config["optout_file"]], check=True)

Community Data Science Collective || Want to submit a patch?