Skip to content

Commit

Permalink
Fix secret badge (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZePedroResende authored Feb 3, 2019
1 parent 05c86c7 commit e43f648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/safira/contest/contest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Safira.Contest do
def list_secret do
Repo.all(from r in Redeem,
join: b in assoc(r, :badge),
where: b.type == 1,
where: b.type == ^1,
preload: [badge: b],
distinct: :badge_id)
|> Enum.map(fn x -> x.badge end)
Expand All @@ -26,7 +26,7 @@ defmodule Safira.Contest do
end

def list_badges_conservative do
Enum.concat(list_secret(),list_badges())
list_secret() ++ list_normals()
end


Expand Down

0 comments on commit e43f648

Please sign in to comment.