diff --git a/v2realbot/common/db.py b/v2realbot/common/db.py index f8aa176..ca33f4b 100644 --- a/v2realbot/common/db.py +++ b/v2realbot/common/db.py @@ -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 diff --git a/v2realbot/static/js/tables/archivetable/init.js b/v2realbot/static/js/tables/archivetable/init.js index 07d5efd..0351481 100644 --- a/v2realbot/static/js/tables/archivetable/init.js +++ b/v2realbot/static/js/tables/archivetable/init.js @@ -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,