1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-10 01:44:36 +00:00

Changed progress.py csv output to be compatible with new website (#1075)

* Changed progress.py csv output to be compatible with new website

* Increment and clarify csv version

* Update csv paths
This commit is contained in:
EllipticEllipsis 2021-12-18 15:09:51 +00:00 committed by GitHub
parent 05b2cbfc60
commit 383a95d11e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -116,11 +116,11 @@ ovlPct = 100 * ovl / ovlSize
bytesPerHeartPiece = total // 80
if args.format == 'csv':
version = 1
csv_version = 2
git_object = git.Repo().head.object
timestamp = str(git_object.committed_date)
git_hash = git_object.hexsha
csv_list = [str(version), timestamp, git_hash, str(code), str(codeSize), str(boot), str(bootSize), str(ovl), str(ovlSize), str(src), str(nonMatchingASM), str(len(nonMatchingFunctions))]
csv_list = [str(csv_version), timestamp, git_hash, str(src), str(total), str(code), str(codeSize), str(boot), str(bootSize), str(ovl), str(ovlSize), str(nonMatchingASM), str(len(nonMatchingFunctions))]
print(",".join(csv_list))
elif args.format == 'shield-json':
# https://shields.io/endpoint