Skip to content

Commit

Permalink
Use intermediate cache when just calculating etag
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Mar 23, 2021
1 parent 4546c4b commit 775c510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/support/digests.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __call__(self, fpath):
@checksums.memoize_path
def get_digest(filepath, digest="sha256") -> str:
if digest == "dandi-etag":
return DandiETag.from_file(filepath).as_str()
return get_dandietag(filepath).as_str()
else:
return Digester([digest])(filepath)[digest]

Expand Down

0 comments on commit 775c510

Please sign in to comment.