Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update footer #2362

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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.
11 changes: 3 additions & 8 deletions kometa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading