Skip to content

Commit

Permalink
fix: use a more robust naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
sehoffmann committed Apr 2, 2024
1 parent 0f1b720 commit 67fe555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmlcloud/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def generate_checkpoint_path(
if creation_time is None:
creation_time = datetime.datetime.now()

dt = datetime.datetime.now().strftime('%Y.%m.%d-%H:%M')
dt = datetime.datetime.now().strftime('%Y.%m.%d-%H.%M')
name = sanitize_filename(name)
return root / f'{name}-{dt}-{generate_id()}'

Expand Down

0 comments on commit 67fe555

Please sign in to comment.