* fix(docs): added margin between sections

* fix: tweets params and descend

* fix: fixed sort

Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
jose-donato
2022-11-02 15:34:13 +00:00
committed by GitHub
parent dcf3bfe1f7
commit 42d014e6d8

View File

@@ -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(