Skip to content

Commit

Permalink
Filter by artifact size
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Nov 15, 2024
1 parent eae8bf1 commit f5bb51f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion perma_web/tasks/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,10 @@ def get_etag(bucket, path):
).e_tag.strip('"')

# obtain a sample of size n
links = Link.objects.filter(cached_can_play_back=True).order_by("?")[:n]
links = (
Link.objects.filter(warc_size__gt=0) |
Link.objects.filter(wacz_size__gt=0)
).order_by("?")[:n]

# build a list of paths
objects = [
Expand Down

0 comments on commit f5bb51f

Please sign in to comment.