fix: Template config listing is no longer reversed

pull/201/head
Robert Dailey 2 years ago
parent f6f6ea3192
commit f5386dfeda

@ -24,12 +24,12 @@ public class ConfigTemplateLister : IConfigLister
var sonarrRowItems = RenderTemplates(table, data, SupportedServices.Sonarr);
var radarrRowItems = RenderTemplates(table, data, SupportedServices.Radarr);
var items = radarrRowItems
.ZipLongest(sonarrRowItems, (l, r) => (l ?? empty, r ?? empty));
var items = sonarrRowItems
.ZipLongest(radarrRowItems, (s, r) => (s ?? empty, r ?? empty));
foreach (var (r, s) in items)
foreach (var (s, r) in items)
{
table.AddRow(r, s);
table.AddRow(s, r);
}
_console.Write(table);

Loading…
Cancel
Save