exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 27e96db63c75da07ae1f1eb95a8c49618aa9e5f4
parent 1727d07a86b2e5a945c374fc7a56fff55540d77d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 28 Mar 2025 06:47:51 +0100

fix #9665

Diffstat:
Msrc/exchange/taler-exchange-httpd_aml-statistics-get.c | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_aml-statistics-get.c b/src/exchange/taler-exchange-httpd_aml-statistics-get.c @@ -53,8 +53,6 @@ TEH_handler_aml_kyc_statistics_get ( TALER_EC_GENERIC_ENDPOINT_UNKNOWN, rc->url); } - start_date = GNUNET_TIME_UNIT_ZERO_TS; - end_date = GNUNET_TIME_timestamp_get (); TALER_MHD_parse_request_timestamp (rc->connection, "start_date", @@ -62,6 +60,14 @@ TEH_handler_aml_kyc_statistics_get ( TALER_MHD_parse_request_timestamp (rc->connection, "end_date", &end_date); + if (GNUNET_TIME_absolute_is_zero (end_date.abs_time)) + end_date = GNUNET_TIME_absolute_to_timestamp ( + GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_SECONDS)); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Looking for stat on %s from [%llu,%llu)\n", + name, + (unsigned long long) start_date.abs_time.abs_value_us, + (unsigned long long) end_date.abs_time.abs_value_us); { enum GNUNET_DB_QueryStatus qs;