diff options
author | Profpatsch <mail@profpatsch.de> | 2024-06-07T09·46+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-06-07T12·12+0000 |
commit | 1b887b43da0e3670e39b81ebbec7fc237006dcd1 (patch) | |
tree | 21589574b3723aafc048b96bb18b17b608464613 /users/Profpatsch/whatcd-resolver/src/Redacted.hs | |
parent | d0ab3c8d15b2293d7752227d50c1b9cbabc57a83 (diff) |
refactor(users/Profpatsch/whatcd-resolver): split table data fetch r/8223
Change-Id: Ic9b2f1e6a5ff0c65b93c1662bad75fb41c86bfcd Reviewed-on: https://cl.tvl.fyi/c/depot/+/11759 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de> Autosubmit: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'users/Profpatsch/whatcd-resolver/src/Redacted.hs')
-rw-r--r-- | users/Profpatsch/whatcd-resolver/src/Redacted.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/Profpatsch/whatcd-resolver/src/Redacted.hs b/users/Profpatsch/whatcd-resolver/src/Redacted.hs index c8182a8cabdf..c0ad9071af18 100644 --- a/users/Profpatsch/whatcd-resolver/src/Redacted.hs +++ b/users/Profpatsch/whatcd-resolver/src/Redacted.hs @@ -386,7 +386,7 @@ getTorrentById dat = do data GetBestTorrentsFilter = GetBestTorrentsFilter { onlyDownloaded :: Bool, - onlyArtist :: Maybe (Label "redactedId" Natural) + onlyArtist :: Maybe (Label "artistRedactedId" Natural) } -- | Find the best torrent for each torrent group (based on the seeding_weight) @@ -426,7 +426,7 @@ getBestTorrents opts = do ( do let (onlyArtistB, onlyArtistId) = case opts.onlyArtist of Nothing -> (True, 0) - Just a -> (False, a.redactedId) + Just a -> (False, a.artistRedactedId) ( opts.onlyDownloaded :: Bool, onlyArtistB :: Bool, onlyArtistId & fromIntegral @Natural @Int |