mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-03 17:05:18 +00:00
Cast barcode scan IDs to list (#8701)
- Fixes issues with limitations on old MySQL server
This commit is contained in:
1 parent
1910612725
commit
4569fd273d
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user