Skip to content

Commit

Permalink
Rename imported prize calculation function
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonis committed Jun 29, 2023
1 parent e54893e commit 8d14e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/challenge_gov/analytics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ defmodule ChallengeGov.Analytics do
year
end

def calculate_prize_amount(challenge = %{imported: true}), do: challenge.prize_total || 0
def calculate_prize_amount_imported(challenge = %{imported: true}), do: challenge.prize_total || 0
def calculate_prize_amount(challenge), do: (challenge.prize_total || 0) / 100

def all_challenges(challenges, years) do
Expand Down

0 comments on commit 8d14e64

Please sign in to comment.