mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Update create_nightly_json.py
This commit is contained in:
@@ -18,7 +18,7 @@ def main():
|
|||||||
name = remove_prefix(data['fileName'], "nightly/")
|
name = remove_prefix(data['fileName'], "nightly/")
|
||||||
url = f"https://f001.backblazeb2.com/file/{bucket}/nightly/{urllib.parse.quote_plus(name)}"
|
url = f"https://f001.backblazeb2.com/file/{bucket}/nightly/{urllib.parse.quote_plus(name)}"
|
||||||
sha1 = data['contentSha1']
|
sha1 = data['contentSha1']
|
||||||
size = int(data['contentLength'])
|
size = int(data['size'])
|
||||||
ts = int(data['fileInfo']['src_last_modified_millis'])
|
ts = int(data['fileInfo']['src_last_modified_millis'])
|
||||||
date = datetime.datetime.fromtimestamp(ts/1000).strftime('%Y-%m-%d')
|
date = datetime.datetime.fromtimestamp(ts/1000).strftime('%Y-%m-%d')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user