api: Fix 'code' in scan-data-labels
This commit is contained in:
parent
62cf8259c1
commit
f6fa95e414
@ -1928,7 +1928,7 @@ class ScanDataLabelsView(BaseView):
|
||||
|
||||
def get(self, request):
|
||||
ret = []
|
||||
for x in ScanData.objects.all().order_by('pk').values('id', 'labels', 'image'):
|
||||
for x in ScanData.objects.all().order_by('pk').values('id', 'labels', 'image', 'code'):
|
||||
ret.append({
|
||||
'id': x['id'],
|
||||
'labels': x.get('labels'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user