1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-23 13:40:20 -05:00

renable weapon name in anticheat snapshot list

update migrations for unique index
fix missing total connection time
include total connection time in get client query
This commit is contained in:
RaidMax
2019-11-25 12:05:12 -06:00
parent 89b690938a
commit 86dd6db3e5
18 changed files with 221 additions and 114 deletions

View File

@ -110,6 +110,7 @@ namespace IW4MAdmin.Plugins.Stats.Web.Controllers
.Select(_penalty => new { _penalty.OffenderId, _penalty.PenaltyId, _penalty.When, _penalty.AutomatedOffense })
.FirstOrDefaultAsync(_penalty => _penalty.PenaltyId == penaltyId);
// todo: this can be optimized
var iqSnapshotInfo = ctx.Set<Models.EFACSnapshot>()
.Where(s => s.ClientId == penalty.OffenderId)
.Include(s => s.LastStrainAngle)
@ -121,9 +122,6 @@ namespace IW4MAdmin.Plugins.Stats.Web.Controllers
.OrderBy(s => s.When)
.ThenBy(s => s.Hits);
#if DEBUG == true
var sql = iqSnapshotInfo.ToSql();
#endif
var penaltyInfo = await iqSnapshotInfo.ToListAsync();
if (penaltyInfo.Count > 0)