[#34] Third step of not using Bio as Attribute

This commit is contained in:
lorenz.stechauner committed 2024-02-20 21:16:06 +01:00
1 parent f8ee478a9e
commit 56fdf62c5c
7 files changed
+215 -77

No files matched your search

+1 -1
View File
@@ -364,7 +364,7 @@ namespace Elwig.Helpers {
var varieties = ctx.WineVarieties.Select(v => new RawVaribute(v.SortId, "", null)).ToList();
var delivered = ctx.DeliveryParts
.Where(d => d.Year == year)
.Select(d => new RawVaribute(d.SortId, d.AttrId ?? "", d.CultId))
.Select(d => new RawVaribute(d.SortId, d.AttrId ?? "", d.CultId ?? ""))
.Distinct()
.ToList();
return [.. (onlyDelivered ? delivered : delivered.Union(varieties)).Order()];