From bb3759c1cd44822224c1fb499b7338e93f479488 Mon Sep 17 00:00:00 2001 From: bullmoose20 <12549033+bullmoose20@users.noreply.github.com> Date: Fri, 13 Dec 2024 07:33:42 -0500 Subject: [PATCH] [25] Update footer (#2362) --- CHANGELOG | 3 +-- VERSION | 2 +- kometa.py | 11 +++-------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 57e79448..69c75b40 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -37,5 +37,4 @@ Modifies default value presentation for default metadata files. Fixes an issue causing IMDB collection to fail due to duplicate keys Removed Blog from the Navigation due to lack of time for updating/maintaining it Fixes #2354 by updating version of tmdbapi dependency -Added Start Time, End Time and Run Time to Summary of run. Date of Start/End Time now only displays if the Start and End are on different dates. - +Added Start Time, Finished and Run Time to Summary of run. diff --git a/VERSION b/VERSION index 8736735e..4d1ba7f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0-build24 +2.1.0-build25 diff --git a/kometa.py b/kometa.py index 491caeae..0e88a668 100644 --- a/kometa.py +++ b/kometa.py @@ -428,14 +428,9 @@ def start(attrs): logger.stacktrace() logger.error(f"Report Error: {e}") - if start_time.date() == end_time.date(): - start_str = start_time.strftime('%H:%M:%S') - end_str = end_time.strftime('%H:%M:%S') - else: - start_str = start_time.strftime('%H:%M:%S %Y-%m-%d') - end_str = end_time.strftime('%H:%M:%S %Y-%m-%d') - - logger.separator(f"Finished {start_type}Run\n{version_line}\nStart Time: {start_str} End Time: {end_str} Run Time: {run_time}") + start_str = start_time.strftime('%H:%M:%S %Y-%m-%d') + end_str = end_time.strftime('%H:%M:%S %Y-%m-%d') + logger.separator(f"Finished {start_type}Run\n{version_line}\nStart Time: {start_str} Finished: {end_str} Run Time: {run_time}") logger.remove_main_handler() except Exception as e: logger.stacktrace()