augment test manifest and fix ram query

This commit is contained in:
Lucy Cifferello
2023-07-21 10:55:19 -04:00
parent 9ad9799471
commit 5c1720aad8
2 changed files with 4 additions and 3 deletions

View File

@@ -116,6 +116,7 @@ import Startlude (
($>),
(<$>), Int,
)
import Database.Esqueleto.Experimental ((>.))
serviceQuerySource ::
(MonadResource m, MonadIO m) =>
@@ -149,7 +150,7 @@ serviceQuerySource mCat query mOsArch mRam = selectSource $ do
where_ $ cat ^. CategoryName ==. val category &&. queryInMetadata query service
where_ (service ^. VersionRecordNumber ==. vp ^. VersionPlatformVersionNumber)
where_ (vp ^. VersionPlatformArch ==. val mOsArch)
where_ (vp ^. VersionPlatformRam ==. val mRam)
where_ (vp ^. VersionPlatformRam >. val mRam)
where_ (pr ^. PkgRecordHidden ==. val False)
pure service
groupBy (service ^. VersionRecordPkgId, service ^. VersionRecordNumber)