Treasure Hunt

main
ilitirit 1 year ago
parent c3b54a2f7c
commit 6598f3b2b7

@ -150,7 +150,7 @@ public class ExpedienceRepository : IExpedienceRepository
var cacheKey = $"xpd-th";
var cacheSeconds = 600;
var records = await _memcachedClient.GetValueOrCreateAsync(cacheKey, cacheSeconds,
async () => await _dbContext.ContentTypeRecords.FromSqlInterpolated($"SELECT * FROM public.get_contenttyperecords({contentType})")
async () => await _dbContext.ContentTypeRecords.FromSqlInterpolated($"SELECT * FROM public.get_contenttyperesults({contentType})")
.ToListAsync(cancellationToken));
return records;

@ -67,7 +67,7 @@
</div>
</div>
}
else
else if (Model.DeepDungeonRecords != null)
{
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
@ -90,4 +90,19 @@
</div>
</div>
}
else if (Model.TreasureHuntRecords != null)
{
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<button class="nav-link active" id="nav-th-tab" data-bs-toggle="tab" data-bs-target="#nav-th" type="button" role="tab" aria-controls="nav-home" aria-selected="true">Treasure Hunt</button>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-th" role="tabpanel" aria-labelledby="nav-th-tab">
<div id="dutyTableDiv" style="display:none;">
@await Html.PartialAsync("_TreasureHuntTable", Model.TreasureHuntRecords)
</div>
</div>
</div>
}
</div>

@ -12,7 +12,7 @@
<th colspan="2">Solo</th>
</tr>
<tr>
<th data-sortable="true">Deep Dungeon</th>
<th data-sortable="true">Treasure Dungeon</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">Min</th>
Loading…
Cancel
Save