Skip to content

Commit

Permalink
Only import matches for summoners that we've already imported.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjp93 committed Oct 8, 2024
1 parent f93d4a4 commit dbcc4a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion match/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ def huge_match_import_task(hours_thresh=72, exclude_hours=24, break_early=True):
match__queue_id__in=[FLEX_QUEUE, SOLO_QUEUE],
match__platform_id="NA1",
puuid__isnull=False,
puuid__in=Summoner.objects.all().values('puuid')
)
qs = qs.exclude(
puuid__in=Summoner.objects.filter(
Expand All @@ -422,6 +421,8 @@ def get_jobs(qs, start_time):
if break_early and summoner.huge_match_import_at and summoner.huge_match_import_at > thresh:
# only go back as far as we need to for this summoner
start_time = summoner.huge_match_import_at
if not summoner:
continue
import_time = timezone.now()
job = import_recent_matches.s(
0,
Expand Down

0 comments on commit dbcc4a5

Please sign in to comment.