Cater for unsynched

main
ilitirit 1 year ago
parent 091083d8ea
commit 29b0be78f7

@ -1,8 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Expedience.Infrastructure.Models namespace Expedience.Infrastructure.Models
{ {
@ -23,5 +19,7 @@ namespace Expedience.Infrastructure.Models
public TimeSpan? AvgMine { get; set; } public TimeSpan? AvgMine { get; set; }
public TimeSpan? MinNpc { get; set; } public TimeSpan? MinNpc { get; set; }
public TimeSpan? AvgNpc { get; set; } public TimeSpan? AvgNpc { get; set; }
public TimeSpan? MinUnsync { get; set; }
public TimeSpan? AvgUnsync { get; set; }
} }
} }

@ -34,6 +34,11 @@ namespace Expedience.Web.Pages
Mode = "NPC Assisted"; Mode = "NPC Assisted";
recordTypeNum = 4; recordTypeNum = 4;
} }
else if (recordType == "unsync")
{
Mode = "Unsynched";
recordTypeNum = 5;
}
else else
throw new Exception($"Record Type {recordType} not found"); throw new Exception($"Record Type {recordType} not found");

@ -12,6 +12,7 @@
<th colspan="2">Normal</th> <th colspan="2">Normal</th>
<th colspan="2">Solo</th> <th colspan="2">Solo</th>
<th colspan="2">MINE</th> <th colspan="2">MINE</th>
<th colspan="2">Unsynched</th>
<th colspan="2">NPC</th> <th colspan="2">NPC</th>
</tr> </tr>
<tr> <tr>
@ -25,6 +26,8 @@
<th data-sortable="true" data-sorter="durationSorter">Avg</th> <th data-sortable="true" data-sorter="durationSorter">Avg</th>
<th data-sortable="true" data-sorter="durationSorter">Min</th> <th data-sortable="true" data-sorter="durationSorter">Min</th>
<th data-sortable="true" data-sorter="durationSorter">Avg</th> <th data-sortable="true" data-sorter="durationSorter">Avg</th>
<th data-sortable="true" data-sorter="durationSorter">Min</th>
<th data-sortable="true" data-sorter="durationSorter">Avg</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -39,6 +42,8 @@
<td>@record.AvgSolo.Format()</td> <td>@record.AvgSolo.Format()</td>
<td><a href="./mine/@record.TerritoryId">@record.MinMine.Format()</a></td> <td><a href="./mine/@record.TerritoryId">@record.MinMine.Format()</a></td>
<td>@record.AvgMine.Format()</td> <td>@record.AvgMine.Format()</td>
<td><a href="./unsync/@record.TerritoryId">@record.MinUnsync.Format()</a></td>
<td>@record.AvgUnsync.Format()</td>
<td><a href="./npc/@record.TerritoryId">@record.MinNpc.Format()</a></td> <td><a href="./npc/@record.TerritoryId">@record.MinNpc.Format()</a></td>
<td>@record.AvgNpc.Format()</td> <td>@record.AvgNpc.Format()</td>
</tr> </tr>

Loading…
Cancel
Save