-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard #31
Dashboard #31
Conversation
Trades stored/updated in database, auto updating budget
…filled, dev/prod log level modified
Thanks @Soimil for your PR 👍 there's few improvements that I flagged in comments - could you please fix those? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem. I will do this asap. Thanks @Cinderella-Man for all suggestions.
|
||
Ecto.Adapters.SQL.query!(Hefty.Repo, query).rows | ||
|> Enum.group_by(fn [head | _tail] -> head end) | ||
|> Enum.map(fn {symbol, [[_, _, losing], [_, _, gaining]]} -> %{String.to_atom("#{symbol}") => [gaining, losing]} end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using String.to_atom("#{symbol}")
it's popular to use :"#{symbol}"
gaining / losing doughnut
No description provided.