Skip to content

Commit

Permalink
style: black reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinston committed Nov 13, 2023
1 parent 2af9b30 commit 3232473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nmdc_runtime/api/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def sha256hash_from_file(file_path: str, timestamp: str):
# https://stackoverflow.com/a/55542529
h = hashlib.sha256()

timestamp_bytes = timestamp.encode('utf-8')
timestamp_bytes = timestamp.encode("utf-8")
h.update(timestamp_bytes)

with open(file_path, "rb") as file:
Expand Down
4 changes: 3 additions & 1 deletion nmdc_runtime/api/endpoints/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ def persist_content_and_get_drs_object(
),
"access_methods": [{"access_id": drs_id}],
},
timestamp= datetime.now(tz=ZoneInfo('America/Los_Angeles')).isoformat(timespec='minutes')
timestamp=datetime.now(tz=ZoneInfo("America/Los_Angeles")).isoformat(
timespec="minutes"
),
)
)
self_uri = f"drs://{HOSTNAME_EXTERNAL}/{drs_id}"
Expand Down

0 comments on commit 3232473

Please sign in to comment.