Skip to content

Commit 7ee8001

Browse files
committed
asdf
1 parent 08b911e commit 7ee8001

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ckanext/datajson/parse_datajson.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ def parse_datajson_entry(datajson, package, defaults, schema_version):
116116
f'Actual size is {len(distribution)}.')
117117
raise DataError(error_message)
118118

119+
120+
# get first 1000 items of distribution
121+
distribution = distribution[:1000]
122+
123+
119124
datajson["distribution"] = distribution
120125

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

0 commit comments

Comments
 (0)