From 5f7d9fbc089de60cdde385a7b93971bd1a9ebb34 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 29 Aug 2024 10:29:44 -0500 Subject: [PATCH] NoRomHash wiki module - filter published submissions since they are redundant to the publication that is listed --- TASVideos/WikiModules/NoGameVersion.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TASVideos/WikiModules/NoGameVersion.cshtml.cs b/TASVideos/WikiModules/NoGameVersion.cshtml.cs index 592f91cab..f02a71775 100644 --- a/TASVideos/WikiModules/NoGameVersion.cshtml.cs +++ b/TASVideos/WikiModules/NoGameVersion.cshtml.cs @@ -21,7 +21,7 @@ public async Task InvokeAsync() v.Md5, v.System!.Code, v.Publications.Select(p => new NoGame.Entry(p.Id, p.Title)).ToList(), - v.Submissions.Select(s => new NoGame.Entry(s.Id, s.Title)).ToList())) + v.Submissions.Where(s => s.Status != SubmissionStatus.Published).Select(s => new NoGame.Entry(s.Id, s.Title)).ToList())) .ToListAsync(); Submissions = await db.Submissions .Where(s => s.GameVersionId == null || s.GameVersionId < 1)