diff --git a/CHANGELOG.md b/CHANGELOG.md index 56fb232..5d59278 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +#### [v1.2.0](https://github.com/nodiscc/hecat/releases#1.2.0) - UNLEREASED + +**Fixed:** +- processors/awesome_lint: fix displayed number of days in `older than ... days` for error-level messages + +--------------------- + #### [v1.1.0](https://github.com/nodiscc/hecat/releases#1.1.0) - 2023-07-29 **Added:** diff --git a/hecat/processors/awesome_lint.py b/hecat/processors/awesome_lint.py index f778cdd..c1deb04 100644 --- a/hecat/processors/awesome_lint.py +++ b/hecat/processors/awesome_lint.py @@ -188,7 +188,7 @@ def check_last_updated(software, step, errors): last_update_time = datetime.strptime(software['updated_at'], "%Y-%m-%d") time_since_last_update = last_update_time - datetime.now() if last_update_time < datetime.now() - timedelta(days=step['module_options']['last_updated_error_days']): - message = '{}: last updated {} ago, older than {} days'.format(software['name'], time_since_last_update, step['module_options']['last_updated_warn_days']) + message = '{}: last updated {} ago, older than {} days'.format(software['name'], time_since_last_update, step['module_options']['last_updated_error_days']) log_exception(message, errors, severity=logging.error) if last_update_time < datetime.now() - timedelta(days=step['module_options']['last_updated_warn_days']): logging.warning('%s: last updated %s ago, older than %s days', software['name'], time_since_last_update, step['module_options']['last_updated_warn_days'])