Skip to content

Commit

Permalink
data format update in CHECKSUM
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmerten committed Nov 8, 2023
1 parent 9660fbc commit c27217b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Workflow to test automatic uploading to Sciebo

name: Upload Testfile
name: Upload data

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
Expand Down
3 changes: 2 additions & 1 deletion calc_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def calc_checksum():
print("#"*50)
print("Calculating the checksum.")
t1 = time.time()
datestr = "-".join([str(x) for x in time.localtime()[:3]])
# datestr format YYYY-MM-DD
datestr = "-".join([str(x).zfill(2) for x in time.localtime()[:3]])
checksum = subprocess.run(["md5sum", "data-"+datestr+".tar.gz"],
capture_output=True, text=True).stdout
with open("data-"+datestr+".tar.gz-CHECKSUM", 'w') as f:
Expand Down

0 comments on commit c27217b

Please sign in to comment.