Skip to content

Commit 90ab1bf

Browse files
fix: final draw csv including ineligible attendees with < 10 entries (#532)
1 parent 8464365 commit 90ab1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/safira_web/controllers/download_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ defmodule SafiraWeb.DownloadController do
170170
end
171171

172172
defp final_draw_lines(user) do
173-
if user.attendee.entries < 10 and !user.attendee.ineligible do
173+
if user.attendee.entries < 10 or user.attendee.ineligible do
174174
[]
175175
else
176176
for _ <- 1..user.attendee.entries do

0 commit comments

Comments
 (0)