mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 04:14:47 +08:00
TST: Update answer key checksums on upload.
Automate the updating of the answer key when a new key is uploaded to S3, so that keeping the latest value in sync is more likely.
This commit is contained in:
@@ -53,5 +53,11 @@ def main():
|
||||
print("Uploaded to key: {key}".format(key=key.key))
|
||||
print("Download link: {download_link}".format(download_link=download_link))
|
||||
|
||||
# Now update checksum file with the recently added answer key.
|
||||
# checksum file update will be then need to be commited via git.
|
||||
with open(answer_key.ANSWER_KEY_CHECKSUMS_PATH, 'a') as checksum_file:
|
||||
checksum_file.write(local_hash)
|
||||
checksum_file.write("\n")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user