diff options
author | Yorhel <git@yorhel.nl> | 2022-10-28 11:19:07 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-10-28 11:19:20 +0200 |
commit | 5496c576eb973fd2a5746f15b6c7328cbbb8fca5 (patch) | |
tree | c8bd982994ccc27e8a600c62287cab6506407cec /elm | |
parent | db0310f80cea1a7bdf354bd90abf58a1247f86e7 (diff) |
VNLengthVote: Disallow voting on TBA releases
Partial revert of 02bf0ea04258134c27032231600ef832071d92c7
https://vndb.org/t2520.710
Diffstat (limited to 'elm')
-rw-r--r-- | elm/VNLengthVote.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/VNLengthVote.elm b/elm/VNLengthVote.elm index a070c21a..e3095803 100644 --- a/elm/VNLengthVote.elm +++ b/elm/VNLengthVote.elm @@ -110,7 +110,7 @@ update msg model = ReleaseDel n -> ({ model | rid = delidx n model.rid }, Cmd.none) Notes s -> ({ model | notes = s }, Cmd.none) RelLoaded (GApi.Releases rels) -> - let rel r = if r.rtype /= "trial" && (r.released <= model.today || not model.maycount) then Just (r.id, RDate.showrel r) else Nothing + let rel r = if r.rtype /= "trial" && r.released <= model.today then Just (r.id, RDate.showrel r) else Nothing frels = List.filterMap rel rels def = case frels of [(r,_)] -> r |