Update ordinamenti weight + refresh prod

This commit is contained in:
Samuele Locatelli
2026-04-10 17:31:54 +02:00
parent 7812b04369
commit d37618feb5
3 changed files with 7 additions and 19 deletions
+1 -1
View File
@@ -143,7 +143,7 @@
{
<li class="list-group-item d-flex justify-content-between align-items-start small py-1">
<div>
@($"{item.Hour:yyyy-MM-dd}")
@($"{item.Hour:yyyy-MM-dd}") | <b>@item.Destination</b>
</div>
<div class="">
<b>@($"{item.RequestCount:N0}")</b>
-12
View File
@@ -42,18 +42,6 @@ namespace MP.IOC.Controllers
return answ;
}
#if false
/// <summary>
/// GET: IOB/
/// </summary>
/// <returns></returns>
[HttpGet("")]
public string alive()
{
return "OK";
}
#endif
/// <summary>
/// GET: IOB/
/// </summary>
+6 -6
View File
@@ -90,12 +90,6 @@ namespace MP.IOC.Services
await foreach (var key in server.KeysAsync(pattern: $"{_keyPrefix}*"))
{
//}
//Task<IEnumerable<RedisKey>> scanTask = await server.KeysAsync(pattern: $"{_keyPrefix}*");
//var keys = scanTask.Result;
//foreach (var key in keys)
//{
var methodName = KeyToString(key.ToString());
if (string.IsNullOrEmpty(methodName)) continue;
@@ -114,6 +108,12 @@ namespace MP.IOC.Services
result.Add(new WeightDTO { Method = methodName, OldWeight = oldW, NewWeight = newW });
}
// riordino desc x NEW poi alfabetico...
result = result
.OrderByDescending(x => x.NewWeight)
.ThenBy(x => x.Method)
.ToList();
return result;
}