From 4569fd273dbbb28b2e173374e7530b247ab9cf5b Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 18 Dec 2024 16:51:32 +1100 Subject: [PATCH] Cast barcode scan IDs to list (#8701) - Fixes issues with limitations on old MySQL server --- src/backend/InvenTree/plugin/base/barcodes/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/plugin/base/barcodes/api.py b/src/backend/InvenTree/plugin/base/barcodes/api.py index 261a9860de..d415be58b9 100644 --- a/src/backend/InvenTree/plugin/base/barcodes/api.py +++ b/src/backend/InvenTree/plugin/base/barcodes/api.py @@ -92,7 +92,7 @@ class BarcodeView(CreateAPIView): if num_scans > max_scans: n = num_scans - max_scans - old_scan_ids = ( + old_scan_ids = list( BarcodeScanResult.objects.all() .order_by('timestamp') .values_list('pk', flat=True)[:n]