From 42d014e6d898f2f3276b076cf29362c98050d1b7 Mon Sep 17 00:00:00 2001 From: jose-donato <43375532+jose-donato@users.noreply.github.com> Date: Wed, 2 Nov 2022 15:34:13 +0000 Subject: [PATCH] Fix 3190 (#3240) * fix(docs): added margin between sections * fix: tweets params and descend * fix: fixed sort Co-authored-by: James Maslek --- .../cryptocurrency/due_diligence/dd_controller.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py b/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py index a8a8fd9a036..2e305bb795a 100644 --- a/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py +++ b/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py @@ -175,7 +175,13 @@ class DueDiligenceController(CryptoBaseController): "-l": "--limit", "--descend": {}, } - choices["events"]["-s"] = {c: None for c in coinpaprika_view.EVENTS_FILTERS} + choices["events"] = { + "--sort": {c: {} for c in coinpaprika_view.EVENTS_FILTERS}, + "-s": "--sort", + "--limit": {str(c): {} for c in range(1, 100)}, + "-l": "--limit", + "--descend": {}, + } choices["twitter"] = { "--sort": {c: {} for c in coinpaprika_view.TWEETS_FILTERS}, "-s": "--sort", @@ -1201,7 +1207,7 @@ class DueDiligenceController(CryptoBaseController): action="store_false", help="Flag to sort in descending order (lowest first)", dest="descend", - default=False, + default=True, ) parser.add_argument(