diff --git a/GZCTF/Repositories/GameRepository.cs b/GZCTF/Repositories/GameRepository.cs index f434d8789..39e1f396c 100644 --- a/GZCTF/Repositories/GameRepository.cs +++ b/GZCTF/Repositories/GameRepository.cs @@ -147,7 +147,8 @@ private static IEnumerable GenScoreboardItems(Data[] data, IDict }; }).ToList() }, - LastSubmissionTime = j.Select(s => s.Submission?.SubmitTimeUTC ?? DateTimeOffset.UtcNow), + LastSubmissionTime = j.Select(s => s.Submission?.SubmitTimeUTC ?? DateTimeOffset.UtcNow) + .OrderByDescending(t => t).FirstOrDefault() }).OrderByDescending(j => j.Item.Score) //成绩倒序,最后提交时间正序 .ThenBy(j => j.LastSubmissionTime) .Select((j, i) => diff --git a/GZCTF/Utils/LogHelper.cs b/GZCTF/Utils/LogHelper.cs index d0eef01aa..3040ca7ed 100644 --- a/GZCTF/Utils/LogHelper.cs +++ b/GZCTF/Utils/LogHelper.cs @@ -119,7 +119,7 @@ public static Logger GetLogger(IConfiguration configuration, IServiceProvider se restrictedToMinimumLevel: LogEventLevel.Debug, rollOnFileSizeLimit: true, retainedFileCountLimit: 5, - hooks: new ArchiveHooks(CompressionLevel.Optimal, "log/archive/{UtcDate:yyyy-MM}/{UtcDate:yyyy-MM-dd}") + hooks: new ArchiveHooks(CompressionLevel.Optimal, "log/archive/{UtcDate:yyyy-MM}") )) .WriteTo.Async(t => t.PostgreSQL( connectionString: configuration.GetConnectionString("DefaultConnection"),