-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
make coinmarketcap's number of pages configurable #1802
make coinmarketcap's number of pages configurable #1802
Conversation
Pull Request Test Coverage Report for Build 744e9f41-eebb-48f6-8972-7dd307e123a8
💛 - Coveralls |
Pull Request Test Coverage Report for Build 3da6d5de-d469-41c6-b29c-1569c5e8828d
💛 - Coveralls |
@@ -38,7 +38,7 @@ defmodule Explorer.ExchangeRates.Source.CoinMarketCap do | |||
"#{base_url()}/v1/ticker/?start=#{page - 1}00" | |||
end | |||
|
|||
def max_page_number, do: 10 | |||
def max_page_number, do: config(:pages) || 10 |
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.
Btw, do we need to convert config(:pages)
to integer here and do we need the second fallback to 10
at all?
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.
we don't need a fallback. value is converted to integer in config
We couldn't fetch coin price for some coins
Changelog