From 6598f3b2b747a6bf5f0e09f1c2b32049db671bd2 Mon Sep 17 00:00:00 2001 From: ilitirit Date: Fri, 16 Aug 2024 21:23:06 +0200 Subject: [PATCH] Treasure Hunt --- .../ExpedienceRepository.cs | 2 +- Expedience.Web/Pages/Index.cshtml | 17 ++++++++++++++++- ...tTable .cshtml => _TreasureHuntTable.cshtml} | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) rename Expedience.Web/Pages/{_TreasureHuntTable .cshtml => _TreasureHuntTable.cshtml} (93%) diff --git a/Expedience.Infrastructure/ExpedienceRepository.cs b/Expedience.Infrastructure/ExpedienceRepository.cs index 616ee40..3141973 100644 --- a/Expedience.Infrastructure/ExpedienceRepository.cs +++ b/Expedience.Infrastructure/ExpedienceRepository.cs @@ -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; diff --git a/Expedience.Web/Pages/Index.cshtml b/Expedience.Web/Pages/Index.cshtml index 1f3b7c4..2fd6a04 100644 --- a/Expedience.Web/Pages/Index.cshtml +++ b/Expedience.Web/Pages/Index.cshtml @@ -67,7 +67,7 @@ } - else + else if (Model.DeepDungeonRecords != null) {