From 189e47327f619587b42ff2cf9523a5f67ea381fd Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 23 2023 03:51:26 +0000 Subject: fix convert_value refs --- diff --git a/kojihub/scheduler.py b/kojihub/scheduler.py index 2fc51d2..600acfc 100644 --- a/kojihub/scheduler.py +++ b/kojihub/scheduler.py @@ -6,9 +6,6 @@ from . import kojihub from .db import QueryProcessor, InsertProcessor, UpdateProcessor, db_lock -convert_value = kojihub.convert_value - - logger = logging.getLogger('koji.scheduler') @@ -37,7 +34,7 @@ def intlist(value): def get_tasks_for_host(hostID): """Get the tasks assigned to a given host""" - hostID = convert_value(hostID, cast=int, none_allowed=True) + hostID = kojihub.convert_value(hostID, cast=int, none_allowed=True) fields = ( ('task.id', 'id'), @@ -82,9 +79,9 @@ def get_host_data(hostID=None): def get_task_runs(taskID=None, hostID=None, active=None): - taskID = convert_value(taskID, cast=int, none_allowed=True) - hostID = convert_value(hostID, cast=int, none_allowed=True) - active = convert_value(active, cast=bool, none_allowed=True) + taskID = kojihub.convert_value(taskID, cast=int, none_allowed=True) + hostID = kojihub.convert_value(hostID, cast=int, none_allowed=True) + active = kojihub.convert_value(active, cast=bool, none_allowed=True) fields = ( ('scheduler_task_runs.id', 'id'),