[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: time-frame -> time-range
From: |
gnunet |
Subject: |
[libeufin] branch master updated: time-frame -> time-range |
Date: |
Sat, 29 Jul 2023 10:06:45 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 8ed318fe time-frame -> time-range
8ed318fe is described below
commit 8ed318feb46099f3531bfef02b2dcf13de557b6f
Author: MS <ms@taler.net>
AuthorDate: Sat Jul 29 10:06:33 2023 +0200
time-frame -> time-range
---
cli/bin/libeufin-cli | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index dda58c91..82dbe992 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -957,11 +957,11 @@ def delete_payment(obj, account_name, payment_uuid):
@click.option(
"--range-type",
default="all",
- help="Admitted values: all, latest, previous-days, since-last, time-frame",
+ help="Admitted values: all, latest, previous-days, since-last, time-range",
)
@click.option("--level", default="all", help="Admitted values: report,
statement, all")
-@click.option("--start", help="If --range-type is 'time-frame', this option
holds the (inclusive) starting date in the format YYYY-MM-DD. If missing, it
defaults to 1970-01-01.")
-@click.option("--end", help="If --range-type is 'time-frame', this option
holds the (inclusive) ending date in the format YYYY-MM-DD. If missing, it
defaults to the present date.")
+@click.option("--start", help="If --range-type is 'time-range', this option
holds the (inclusive) starting date in the format YYYY-MM-DD. If missing, it
defaults to 1970-01-01.")
+@click.option("--end", help="If --range-type is 'time-range', this option
holds the (inclusive) ending date in the format YYYY-MM-DD. If missing, it
defaults to the present date.")
@click.argument("account-name")
@click.pass_obj
def fetch_transactions(obj, account_name, range_type, level, start, end):
@@ -969,7 +969,7 @@ def fetch_transactions(obj, account_name, range_type,
level, start, end):
obj.nexus_base_url,
"/bank-accounts/{}/fetch-transactions".format(account_name)
)
body = dict(rangeType=range_type, level=level)
- if range_type == "time-frame":
+ if range_type == "time-range":
start_value = start if start else "1970-01-01"
end_value = end if end else datetime.today().strftime("%Y-%m-%d")
body.update(dict(start=start_value, end=end_value))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: time-frame -> time-range,
gnunet <=