Skip to content

Commit

Permalink
Merge pull request #590 from xichen1/chaincode-dashboard-main
Browse files Browse the repository at this point in the history
Clean Up List CC API
  • Loading branch information
yeasy authored Dec 14, 2023
2 parents 5c8def2 + a0aec58 commit ebc0a62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api-engine/api/routes/chaincode/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ChainCodeResponseSerializer(ChainCodeIDSerializer, serializers.ModelSerial

class Meta:
model = ChainCode
fields = ("id", "name", "version", "creator", "language", "create_ts", "md5")
fields = ("id", "package_id", "label", "creator", "language", "create_ts", "description")


class ChaincodeListResponse(ListResponseSerializer):
Expand Down
6 changes: 3 additions & 3 deletions src/api-engine/api/routes/chaincode/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def list(self, request):
chanincodes_list = [
{
"id": chaincode.id,
"name": chaincode.name,
"version": chaincode.version,
"package_id": chaincode.package_id,
"label": chaincode.label,
"creator": chaincode.creator,
"language": chaincode.language,
"create_ts": chaincode.create_ts,
"md5": chaincode.md5,
"description": chaincode.description,
}
for chaincode in chaincodes_pages
]
Expand Down

0 comments on commit ebc0a62

Please sign in to comment.