Skip to content

Commit 0d4b39a

Browse files
Clean up timestamp generation into a single call
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 3bf3a06 commit 0d4b39a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

git_sim/__main__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,6 @@ def main():
332332
video = cv2.VideoCapture(str(scene.renderer.file_writer.movie_file_path))
333333
success, image = video.read()
334334
if success:
335-
t = datetime.datetime.fromtimestamp(time.time()).strftime(
336-
"%m-%d-%y_%H-%M-%S"
337-
)
338335
image_file_name = "git-sim-" + args.subcommand + "_" + t + ".jpg"
339336
image_file_path = os.path.join(
340337
os.path.join(config.media_dir, "images"), image_file_name

0 commit comments

Comments
 (0)