Update ordinamenti weight + refresh prod
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user