From 2c9f69524acef4ca159cfaf0832b063a276f3a38 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Tue, 26 Mar 2024 12:27:31 +0100 Subject: [PATCH] fix flake8 --- cli/koji_cli/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 6f2550ec..95189a2c 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -8035,7 +8035,7 @@ def anon_handle_scheduler_info(goptions, session, args): runs = runs[-options.limit:] if session.hub_version < (1, 34, 1): # emulate order - runs.sort(key=lambda r:r['id']) + runs.sort(key=lambda r: r['id']) mask = '%(task_id)-9s %(host_name)-20s %(state)-7s ' \ '%(create_ts)-17s %(start_ts)-17s %(completion_ts)-17s' @@ -8099,7 +8099,7 @@ def handle_scheduler_logs(goptions, session, args): if options.to_ts: clauses.append(['msg_ts', '<', options.to_ts]) - fields=('id', 'task_id', 'host_id', 'host_name', 'msg_ts', 'msg') + fields = ('id', 'task_id', 'host_id', 'host_name', 'msg_ts', 'msg') kwargs = {'clauses': clauses, 'fields': fields} if session.hub_version < (1, 34, 0): error("Hub version is %s and doesn't support scheduler methods " @@ -8119,7 +8119,7 @@ def handle_scheduler_logs(goptions, session, args): logs = logs[-options.limit:] if session.hub_version < (1, 34, 1): # emulate order - logs.sort(key=lambda r:r['id']) + logs.sort(key=lambda r: r['id']) for log in logs: log['time'] = time.asctime(time.localtime(log['msg_ts']))