Skip to content

Commit

Permalink
[!wip]opt(scoreboard): optimize memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kengwang committed Aug 30, 2024
1 parent cabb7f1 commit 0a886d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GZCTF/Repositories/GameRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public async Task<ScoreboardModel> GenScoreboard(Game game, CancellationToken to

Task<Data[]> FetchData(Game game, CancellationToken token = default) =>
Context.GameInstances
.Where(t=>t.IsSolved)
.Include(i => i.Challenge)
.Where(i => i.Challenge.Game == game
&& i.Challenge.IsEnabled
Expand Down

0 comments on commit 0a886d5

Please sign in to comment.