Add Start Time, End Time and Run Time to Summary of run. (#2361)

dependabot/pip/nightly/num2words-0.5.14
YozoraXCII 2 weeks ago committed by GitHub
parent 52a6e54b26
commit 6cacdd59fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,4 +37,5 @@ Modifies default value presentation for default metadata files.
Fixes an issue causing IMDB collection to fail due to duplicate keys 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 Removed Blog from the Navigation due to lack of time for updating/maintaining it
Fixes #2354 by updating version of tmdbapi dependency 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.

@ -428,7 +428,14 @@ def start(attrs):
logger.stacktrace() logger.stacktrace()
logger.error(f"Report Error: {e}") logger.error(f"Report Error: {e}")
logger.separator(f"Finished {start_type}Run\n{version_line}\nFinished: {end_time.strftime('%H:%M:%S %Y-%m-%d')} Run Time: {run_time}") 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}")
logger.remove_main_handler() logger.remove_main_handler()
except Exception as e: except Exception as e:
logger.stacktrace() logger.stacktrace()

Loading…
Cancel
Save