diff options
| author | Mikkel Hjortshoej <fyoucon@gmail.com> | 2020-04-23 22:16:31 +0200 |
|---|---|---|
| committer | Mikkel Hjortshoej <fyoucon@gmail.com> | 2020-04-23 22:16:31 +0200 |
| commit | bb3e0fa03f2730ec3a5b652ea002841342b987a8 (patch) | |
| tree | 63d462443c7e47f29f71b025aef93ec94d66a3d8 /ci | |
| parent | 026bb8ed6f6e626c69ccfe32de5b2323d86b4620 (diff) | |
Add sizeInBytes of zip files to nightly.json generation
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/create_nightly_json.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/create_nightly_json.py b/ci/create_nightly_json.py index 65be4f7af..2fefadd00 100644 --- a/ci/create_nightly_json.py +++ b/ci/create_nightly_json.py @@ -18,6 +18,7 @@ def main(): name = remove_prefix(data['fileName'], "nightly/") url = f"https://f001.backblazeb2.com/file/{bucket}/nightly/{urllib.parse.quote_plus(name)}" sha1 = data['contentSha1'] + size = int(data['contentLength']) ts = int(data['fileInfo']['src_last_modified_millis']) date = datetime.datetime.fromtimestamp(ts/1000).strftime('%Y-%m-%d') @@ -28,6 +29,7 @@ def main(): 'name': name, 'url': url, 'sha1': sha1, + 'sizeInBytes': size, }) now = datetime.datetime.utcnow().isoformat() |