From bdfa18830d12ed99fee8d79f48d2ab0ba52c567e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 15 May 2017 20:33:02 +0200 Subject: start_row is actually start in the spec, fix naming --- src/bank-lib/bank_api_history.c | 4 ++-- src/bank-lib/fakebank.c | 2 +- src/bank-lib/test_bank_api.c | 4 ---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/bank-lib/bank_api_history.c b/src/bank-lib/bank_api_history.c index 87619e786..e134f20f4 100644 --- a/src/bank-lib/bank_api_history.c +++ b/src/bank-lib/bank_api_history.c @@ -273,13 +273,13 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx, { if (TALER_BANK_DIRECTION_BOTH == direction) GNUNET_asprintf (&url, - "/history?auth=basic&account_number=%llu&delta=%lld&start_row=%llu", + "/history?auth=basic&account_number=%llu&delta=%lld&start=%llu", (unsigned long long) account_number, (long long) num_results, (unsigned long long) start_row); else GNUNET_asprintf (&url, - "/history?auth=basic&account_number=%llu&delta=%lld&start_row=%llu&direction=%s", + "/history?auth=basic&account_number=%llu&delta=%lld&start=%llu&direction=%s", (unsigned long long) account_number, (long long) num_results, (unsigned long long) start_row, diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index 8d16567fb..813d5b21b 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -425,7 +425,7 @@ handle_history (struct TALER_FAKEBANK_Handle *h, "direction"); start = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, - "start_row"); + "start"); acc = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "account_number"); diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c index 9904f3718..131d6559e 100644 --- a/src/bank-lib/test_bank_api.c +++ b/src/bank-lib/test_bank_api.c @@ -62,7 +62,6 @@ run (void *cls) .details.admin_add_incoming.credit_account_no = 1, .details.admin_add_incoming.debit_account_no = 2, /* Ignored */ .details.admin_add_incoming.amount = "KUDOS:5.01" }, - #if 0 /* Ask Exchange's incoming history */ { .oc = TBI_OC_HISTORY, .label = "history-1c", @@ -70,7 +69,6 @@ run (void *cls) .details.history.direction = TALER_BANK_DIRECTION_CREDIT, .details.history.start_row_ref = NULL, .details.history.num_results = 5 }, - #endif /* Ask Exchange's outgoing history, 5 records into the future?? */ { .oc = TBI_OC_HISTORY, .label = "history-2d", @@ -78,7 +76,6 @@ run (void *cls) .details.history.direction = TALER_BANK_DIRECTION_DEBIT, .details.history.start_row_ref = NULL, .details.history.num_results = 5 }, - # if 0 /* Ask Exchange's outgoing history, last 5 records */ { .oc = TBI_OC_HISTORY, .label = "history-2dr", @@ -92,7 +89,6 @@ run (void *cls) .details.history.direction = TALER_BANK_DIRECTION_DEBIT, .details.history.start_row_ref = "deposit-1", .details.history.num_results = 5 }, - #endif { .oc = TBI_OC_END } }; -- cgit v1.2.3