diff --git a/web/api/webrpc/pipeline_porep.go b/web/api/webrpc/pipeline_porep.go index 9c01e8aa2..aa57faba4 100644 --- a/web/api/webrpc/pipeline_porep.go +++ b/web/api/webrpc/pipeline_porep.go @@ -412,5 +412,5 @@ func (a *WebRPC) getOwner(ctx context.Context, id int64) (bool, error) { if err != nil { return false, xerrors.Errorf("failed to fetch owner ID: %w", err) } - return &owner != nil, nil + return owner > 0, nil } diff --git a/web/api/webrpc/tasks.go b/web/api/webrpc/tasks.go index dd301beb0..52d13ff3c 100644 --- a/web/api/webrpc/tasks.go +++ b/web/api/webrpc/tasks.go @@ -26,7 +26,8 @@ func (a *WebRPC) ClusterTaskSummary(ctx context.Context) ([]TaskSummary, error) err := a.deps.DB.Select(ctx, &ts, `SELECT t.id as id, t.name as name, t.update_time as since_posted, t.owner_id as owner_id, hm.host_and_port as owner FROM harmony_task t LEFT JOIN harmony_machines hm ON hm.id = t.owner_id - ORDER BY t.update_time ASC, t.owner_id`) + ORDER BY + CASE WHEN t.owner_id IS NULL THEN 1 ELSE 0 END, t.update_time ASC`) if err != nil { return nil, err // Handle error } diff --git a/web/static/pages/pipeline_porep/pipeline-porep-sectors.mjs b/web/static/pages/pipeline_porep/pipeline-porep-sectors.mjs index 15eda891b..db805cbc8 100644 --- a/web/static/pages/pipeline_porep/pipeline-porep-sectors.mjs +++ b/web/static/pages/pipeline_porep/pipeline-porep-sectors.mjs @@ -69,7 +69,7 @@ customElements.define('pipeline-porep-sectors',class PipelinePorepSectors extend } .pipeline-waiting { - background-color: #d0d0d0; + background-color: #808080; }` properties = { sector: Object,