Skip to content

Commit 1a6318f

Browse files
authored
Move the for_packages field in SCIO XLSX output #1487 (#1489)
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent e1607c7 commit 1a6318f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scanpipe/api/serializers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,14 @@ class CodebaseResourceSerializer(serializers.ModelSerializer):
339339

340340
class Meta:
341341
model = CodebaseResource
342+
# This fields ordering is sued as-is by the ``output`a modules that depend on
343+
# the serializers.
342344
fields = [
343345
"path",
344346
"type",
345347
"name",
346348
"status",
349+
"for_packages",
347350
"tag",
348351
"extension",
349352
"size",
@@ -373,7 +376,6 @@ class Meta:
373376
"holders",
374377
"authors",
375378
"package_data",
376-
"for_packages",
377379
"emails",
378380
"urls",
379381
"extra_data",

0 commit comments

Comments
 (0)