batchprofit/batchcount columns hidden from archiverunners gui

This commit is contained in:
David Brazda
2024-02-27 08:15:07 +07:00
parent f884c16f07
commit ca1172c61c
2 changed files with 4 additions and 4 deletions

View File

@ -117,8 +117,8 @@ def row_to_runarchiveview(row: dict) -> RunArchiveView:
end_positions=int(row['end_positions']),
end_positions_avgp=float(row['end_positions_avgp']),
metrics=orjson.loads(row['metrics']) if row['metrics'] else None,
batch_profit=int(row['batch_profit']) if row['batch_profit'] else 0,
batch_count=int(row['batch_count']) if row['batch_count'] 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'] and row['batch_id'] else 0,
)
return a

View File

@ -42,8 +42,8 @@ function initialize_archiveRecords() {
{data: 'end_positions_avgp', visible: true},
{data: 'metrics', visible: true},
{data: 'batch_id', visible: true},
{data: 'batch_profit', visible: true},
{data: 'batch_count', visible: true},
{data: 'batch_profit', visible: false},
{data: 'batch_count', visible: false},
],
paging: true,
processing: true,