Check if the locally available score has files

This commit is contained in:
iiSaLMaN 2019-07-05 05:16:40 +03:00
parent ae28d82b2f
commit bff5ad22f4
1 changed files with 1 additions and 1 deletions

View File

@ -65,6 +65,6 @@ protected override ScoreInfo CreateModel(ArchiveReader archive)
protected override ArchiveDownloadRequest<ScoreInfo> CreateDownloadRequest(ScoreInfo score, bool minimiseDownload) => new DownloadReplayRequest(score);
protected override bool CheckLocalAvailability(ScoreInfo model, IQueryable<ScoreInfo> items) => items.Any(s => s.OnlineScoreID == model.OnlineScoreID);
protected override bool CheckLocalAvailability(ScoreInfo model, IQueryable<ScoreInfo> items) => items.Any(s => s.OnlineScoreID == model.OnlineScoreID && s.Files.Any());
}
}