Skip to content

Commit

Permalink
clarify that quotes should not be from unknown authors #1
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Oct 12, 2019
1 parent d1824e4 commit 1c0726a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ defmodule Utils do
list = File.read!("quotes.json")
|> Jason.decode!
|> Enum.uniq
|> Enum.map(fn q ->
if q["author"] != "" && q["author"] != nil do
|> Enum.map(fn q -> # quote must not be from unknown authors
if q["author"] != "" && q["author"] != nil && q["author"] != "unknown" do
q
end
end)
Expand Down

0 comments on commit 1c0726a

Please sign in to comment.