Skip to content

Commit

Permalink
#678: ArchiveIt seeds now disregard source frequency, all archiving S…
Browse files Browse the repository at this point in the history
…eeds considered
  • Loading branch information
Fasand committed Aug 30, 2024
1 parent e24de9f commit 18599e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Seeder/harvests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,8 @@ def get_oneshot_seeds(self):
def get_archiveit_seeds(self):
if not self.archive_it:
return set()
# Get all potential ArchiveIt seeds
archiveit = Seed.objects.archiving().filter(
source__frequency__in=[1, 2, 4, 6])
# Get all potential ArchiveIt seeds across all source frequencies
archiveit = Seed.objects.archiving()
archiveit = set(archiveit.values_list('url', flat=True))
# Get all harvested seeds up to this Harvest's scheduled date
previously_harvested = self.get_previously_harvested()
Expand Down

0 comments on commit 18599e9

Please sign in to comment.