Tigran пре 4 година
родитељ
комит
a381a71922
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 0 1
      CardCollector/DataBase/EntityDao/AuctionDao.cs
  2. 2 2
      CardCollector/Extensions.cs

+ 0 - 1
CardCollector/DataBase/EntityDao/AuctionDao.cs

@@ -2,7 +2,6 @@
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq.Expressions;
-using System.Threading;
 using System.Threading.Tasks;
 using CardCollector.DataBase.Entity;
 using CardCollector.Others;

+ 2 - 2
CardCollector/Extensions.cs

@@ -89,12 +89,12 @@ namespace CardCollector
                 /* Фильтруем по цене алмазов ОТ */
                 if (dict[Command.price_gems_from] is int PGF && PGF != 0)
                     list = list.Where(item => state == UserState.AuctionMenu
-                        ? AuctionDao.HaveAny(item.Id, i => i.PriceCoins >= PGF)
+                        ? AuctionDao.HaveAny(item.Id, i => i.PriceGems >= PGF)
                         : item.PriceGems >= PGF);
                 /* Фильтруем по цене адмазов ДО */
                 if (dict[Command.price_gems_to] is int PGT && PGT != 0)
                     list = list.Where(item => state == UserState.AuctionMenu
-                        ? AuctionDao.HaveAny(item.Id, i => i.PriceCoins <= PGT)
+                        ? AuctionDao.HaveAny(item.Id, i => i.PriceGems <= PGT)
                         : item.PriceGems <= PGT);
             }
             /* Сортируем список, если тип сортировки установлен */