summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-10-28 11:19:07 +0200
committerYorhel <git@yorhel.nl>2022-10-28 11:19:20 +0200
commit5496c576eb973fd2a5746f15b6c7328cbbb8fca5 (patch)
treec8bd982994ccc27e8a600c62287cab6506407cec
parentdb0310f80cea1a7bdf354bd90abf58a1247f86e7 (diff)
VNLengthVote: Disallow voting on TBA releases
Partial revert of 02bf0ea04258134c27032231600ef832071d92c7 https://vndb.org/t2520.710
-rw-r--r--elm/VNLengthVote.elm2
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