[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 04/06: start_row is actually start in the
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 04/06: start_row is actually start in the spec, fix naming |
Date: |
Tue, 16 May 2017 11:05:15 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit bdfa18830d12ed99fee8d79f48d2ab0ba52c567e
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon May 15 20:33:02 2017 +0200
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 87619e7..e134f20 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 8d16567..813d5b2 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 9904f37..131d655 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 }
};
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (cddce0f -> 82cec70), gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 03/06: handle base32-wire transfer subject being followed by space+exchange base url in wire plugin and fakebank, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 02/06: fix port numbers, no longer 8081 but on 8080; and box json array /history response in {data} as required by API, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 01/06: take the history array from "data" field returned by the bank, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 06/06: nicer error reporting, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 05/06: use and purge alternate db when testing against python bank, gnunet, 2017/05/16
- [GNUnet-SVN] [taler-exchange] 04/06: start_row is actually start in the spec, fix naming,
gnunet <=