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

crypto/ov/categories sort options #3335

Merged
merged 7 commits into from
Nov 10, 2022

Conversation

simmonsj330
Copy link
Contributor

Description

Fixes #3050 by adding correct table columns into the sort options.
Screen Shot 2022-11-07 at 7 00 31 PM

How has this been tested?

Running pytest on test_pycoingecko_view.py and test_overview_controller.py with --rewrite-expected does not change test results.

Others

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.

@simmonsj330 simmonsj330 added bug Fix bug crypto Crypto related labels Nov 8, 2022
@simmonsj330 simmonsj330 self-assigned this Nov 8, 2022
Comment on lines 140 to 145
for c in [
"Name",
"Market_Cap",
"Market_Cap_Change_24H",
"Top_3_Coins",
"Volume_24H",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convention is to define this as a self.CATEGORY_SORT_CHOICES then use this here and in the choices

@jmaslek jmaslek merged commit b37dcf8 into OpenBB-finance:main Nov 10, 2022
@simmonsj330 simmonsj330 deleted the crypto_categories_bug branch November 10, 2022 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug crypto Crypto related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] crypto/ov/categories sort error
3 participants