mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Update DB to version 21: Have full introduction date for machines, not only year.
This commit is contained in:
@@ -101,7 +101,7 @@ namespace cicm_web.Models
|
||||
|
||||
List<MachineMini> items = new List<MachineMini>();
|
||||
foreach(Cicm.Database.Schemas.Machine dbItem in dbItems)
|
||||
if(dbItem.Year == year)
|
||||
if(dbItem.Introduced.Year == year)
|
||||
items.Add(MachineMini.TransformItem(dbItem));
|
||||
|
||||
return items.OrderBy(t => t.Company.Name).ThenBy(t => t.Model).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user