Skip to content
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

Merged
merged 10 commits into from
Aug 31, 2019
Merged

Dashboard #31

merged 10 commits into from
Aug 31, 2019

Conversation

Soimil
Copy link
Contributor

@Soimil Soimil commented Aug 28, 2019

No description provided.

@Cinderella-Man
Copy link
Owner

Thanks @Soimil for your PR 👍 there's few improvements that I flagged in comments - could you please fix those?

Copy link
Contributor Author

@Soimil Soimil left a 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.

apps/ui/lib/ui_web/live/price_chart_live.ex Outdated Show resolved Hide resolved
apps/ui/lib/ui_web/live/gaining_losing_trades_live.ex Outdated Show resolved Hide resolved
apps/ui/lib/ui_web/live/gaining_losing_trades_live.ex Outdated Show resolved Hide resolved
apps/ui/lib/ui_web/live/gaining_losing_trades_live.ex Outdated Show resolved Hide resolved

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)
Copy link
Owner

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}"

@Cinderella-Man Cinderella-Man merged commit 6fb5375 into Cinderella-Man:1.0.1 Aug 31, 2019
@Soimil Soimil deleted the dashboard branch September 2, 2019 19:03
Cinderella-Man pushed a commit that referenced this pull request Sep 6, 2019
gaining / losing doughnut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants