From 67fe555ed076a745e059891c90ae933464a9c484 Mon Sep 17 00:00:00 2001 From: Sebastian Hoffmann <shoffmann.git@gmail.com> Date: Tue, 2 Apr 2024 21:05:42 +0200 Subject: [PATCH] fix: use a more robust naming scheme --- dmlcloud/checkpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmlcloud/checkpoint.py b/dmlcloud/checkpoint.py index 2dfaf06..10b40dc 100644 --- a/dmlcloud/checkpoint.py +++ b/dmlcloud/checkpoint.py @@ -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()}'