From c6ce05cf031cd3cb557c1db1932e40b1bd7621cc Mon Sep 17 00:00:00 2001 From: Tim Hendriks Date: Sat, 18 May 2024 12:00:52 +0200 Subject: [PATCH] fix grammar issue with export duration message --- addon/ops/arduino_export.py | 2 +- addon/ops/base_export.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addon/ops/arduino_export.py b/addon/ops/arduino_export.py index 2988cce..4c6922d 100644 --- a/addon/ops/arduino_export.py +++ b/addon/ops/arduino_export.py @@ -82,5 +82,5 @@ def format_scene_name(cls): if scene_name[0].isdigit(): scene_name = '_' + scene_name - + return scene_name diff --git a/addon/ops/base_export.py b/addon/ops/base_export.py index 0e97f63..3b3131a 100644 --- a/addon/ops/base_export.py +++ b/addon/ops/base_export.py @@ -48,8 +48,9 @@ def execute(self, context): end = time.time() duration = round(end - start) + unit = "second" if duration == 1 else "seconds" self.report( - {'INFO'}, f"Animation servo positions exported after {duration} seconds") + {'INFO'}, f"Animation servo positions exported after {duration} {unit}") return {'FINISHED'}