batchprofit/batchcount columns hidden from archiverunners gui
This commit is contained in:
@ -117,8 +117,8 @@ def row_to_runarchiveview(row: dict) -> RunArchiveView:
|
|||||||
end_positions=int(row['end_positions']),
|
end_positions=int(row['end_positions']),
|
||||||
end_positions_avgp=float(row['end_positions_avgp']),
|
end_positions_avgp=float(row['end_positions_avgp']),
|
||||||
metrics=orjson.loads(row['metrics']) if row['metrics'] else None,
|
metrics=orjson.loads(row['metrics']) if row['metrics'] else None,
|
||||||
batch_profit=int(row['batch_profit']) if row['batch_profit'] else 0,
|
batch_profit=int(row['batch_profit']) if row['batch_profit'] and row['batch_id'] else 0,
|
||||||
batch_count=int(row['batch_count']) if row['batch_count'] else 0,
|
batch_count=int(row['batch_count']) if row['batch_count'] and row['batch_id'] else 0,
|
||||||
)
|
)
|
||||||
return a
|
return a
|
||||||
|
|
||||||
|
|||||||
@ -42,8 +42,8 @@ function initialize_archiveRecords() {
|
|||||||
{data: 'end_positions_avgp', visible: true},
|
{data: 'end_positions_avgp', visible: true},
|
||||||
{data: 'metrics', visible: true},
|
{data: 'metrics', visible: true},
|
||||||
{data: 'batch_id', visible: true},
|
{data: 'batch_id', visible: true},
|
||||||
{data: 'batch_profit', visible: true},
|
{data: 'batch_profit', visible: false},
|
||||||
{data: 'batch_count', visible: true},
|
{data: 'batch_count', visible: false},
|
||||||
],
|
],
|
||||||
paging: true,
|
paging: true,
|
||||||
processing: true,
|
processing: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user