Cost of Delay 1.122

This commit is contained in:
2025-04-14 12:55:28 -07:00
parent 906868540b
commit 3e8f5931e2
28 changed files with 17480 additions and 184 deletions

View File

@ -191,8 +191,13 @@ public class Aggregation
internal static ReadOnlyDictionary<int, Aggregation> GetKeyValuePairs(Settings settings, Notification notification)
{
ReadOnlyDictionary<int, Aggregation> results;
Dictionary<int, List<Notification>> keyValuePairs = new() { { int.Parse(notification.Id), new Notification[] { notification }.ToList() } };
results = GetKeyValuePairs(settings, keyValuePairs);
if (string.IsNullOrEmpty(notification.Id) || !int.TryParse(notification.Id, out int id))
results = new(new Dictionary<int, Aggregation>());
else
{
Dictionary<int, List<Notification>> keyValuePairs = new() { { id, new Notification[] { notification }.ToList() } };
results = GetKeyValuePairs(settings, keyValuePairs);
}
return results;
}