mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Fix 3184 (#3242)
* fix(docs): added margin between sections * fix: news params and descend * fix: ascending Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
@@ -178,7 +178,7 @@ class DueDiligenceController(CryptoBaseController):
|
||||
"-s": "--sort",
|
||||
"--limit": {str(c): {} for c in range(1, 100)},
|
||||
"-l": "--limit",
|
||||
"--descend": {},
|
||||
"--ascend": {},
|
||||
}
|
||||
choices["events"] = {
|
||||
"--sort": {c: {} for c in coinpaprika_view.EVENTS_FILTERS},
|
||||
@@ -1126,7 +1126,7 @@ class DueDiligenceController(CryptoBaseController):
|
||||
description="""Get all exchanges found for given coin.
|
||||
You can display only top N number of exchanges with --top parameter.
|
||||
You can sort data by id, name, adjusted_volume_24h_share, fiats --sort parameter
|
||||
and also with --descend flag to sort descending.
|
||||
and also with --ascend flag to sort ascending.
|
||||
Displays:
|
||||
id, name, adjusted_volume_24h_share, fiats""",
|
||||
)
|
||||
@@ -1151,10 +1151,10 @@ class DueDiligenceController(CryptoBaseController):
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--descend",
|
||||
action="store_false",
|
||||
help="Flag to sort in descending order (lowest first)",
|
||||
dest="descend",
|
||||
"--ascend",
|
||||
action="store_true",
|
||||
help="Flag to sort in ascending order (lowest first)",
|
||||
dest="ascend",
|
||||
default=False,
|
||||
)
|
||||
|
||||
@@ -1167,7 +1167,7 @@ class DueDiligenceController(CryptoBaseController):
|
||||
symbol=self.symbol,
|
||||
limit=ns_parser.limit,
|
||||
sortby=ns_parser.sortby,
|
||||
ascend=not ns_parser.descend,
|
||||
ascend=ns_parser.ascend,
|
||||
export=ns_parser.export,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user