Skip to content

Commit a1ecd4d

Browse files
committed
feat: The page that shows processing for files should also only show active games, where we can find mods through the API.
1 parent 879826c commit a1ecd4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CFLookup/Pages/FileProcessingInfo.cshtml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ public FileProcessingInfoModel(ApiClient cfApiClient, ConnectionMultiplexer conn
2626

2727
public async Task<IActionResult> OnGetAsync()
2828
{
29-
var gameProcessingInfo = await _db.ExecuteListAsync<FileProcessingStatus>("SELECT * FROM fileProcessingStatus ORDER BY last_updated_utc DESC");
29+
var gameProcessingInfo = await _db.ExecuteListAsync<FileProcessingStatus>(@"
30+
SELECT fps.*
31+
FROM fileProcessingStatus fps
32+
INNER JOIN ProcessingGames pg ON fps.gameId = pg.GameId
33+
WHERE pg.Disabled = 0 AND pg.ModCount > 0
34+
ORDER BY fps.last_updated_utc DESC
35+
");
3036

3137
foreach (var info in gameProcessingInfo)
3238
{

0 commit comments

Comments
 (0)