diff options
| author | Mikkel Hjortshøj <me@thisdrunkdane.io> | 2021-08-08 11:29:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-08 11:29:56 +0200 |
| commit | e6adfd8054724c6ce1eb54fb234dd8c238b1c8f1 (patch) | |
| tree | 5f2d0787cb8b214ace0b6c8432e270da5791bfc4 /ci | |
| parent | 6d59223efd02528fea663f9208e7b4c8cd1a473f (diff) | |
Update create_nightly_json.py
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/create_nightly_json.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/create_nightly_json.py b/ci/create_nightly_json.py index 2fefadd00..2ad086a82 100644 --- a/ci/create_nightly_json.py +++ b/ci/create_nightly_json.py @@ -18,7 +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']) + size = int(data['size']) ts = int(data['fileInfo']['src_last_modified_millis']) date = datetime.datetime.fromtimestamp(ts/1000).strftime('%Y-%m-%d') |