Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Sep 25, 2024
1 parent 08b911e commit 7ee8001
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckanext/datajson/parse_datajson.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ def parse_datajson_entry(datajson, package, defaults, schema_version):
f'Actual size is {len(distribution)}.')
raise DataError(error_message)


# get first 1000 items of distribution
distribution = distribution[:1000]


datajson["distribution"] = distribution

for d in datajson.get("distribution", []):
Expand Down

0 comments on commit 7ee8001

Please sign in to comment.