[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: fix date range query
From: |
gnunet |
Subject: |
[libeufin] branch master updated: fix date range query |
Date: |
Fri, 24 Jan 2020 16:15:29 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 8ede3cc fix date range query
8ede3cc is described below
commit 8ede3ccb5f899aed74f002cbe8c77e2e106095cc
Author: Florian Dold <address@hidden>
AuthorDate: Fri Jan 24 16:15:24 2020 +0100
fix date range query
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 4 +---
sandbox/src/main/python/libeufin-cli | 1 -
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index c582cc3..bbfc9f5 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -183,8 +183,6 @@ fun sampleData() {
* @param builder lambda function that will loop over all the results.
*/
fun extractHistoryForEach(id: Int, start: String?, end: String?, builder:
(BankTransactionEntity) -> Any) {
-
-
val s = if (start != null) DateTime.parse(start) else DateTime(0)
val e = if (end != null) DateTime.parse(end) else DateTime.now()
@@ -193,7 +191,7 @@ fun extractHistoryForEach(id: Int, start: String?, end:
String?, builder: (BankT
transaction {
addLogger(StdOutSqlLogger)
BankTransactionEntity.find {
- BankTransactionsTable.localCustomer eq id and
BankTransactionsTable.valueDate.between(s, e)
+ BankTransactionsTable.localCustomer eq id and
BankTransactionsTable.valueDate.between(s.millis, e.millis)
}.forEach {
LOGGER.debug("Found history element: $it")
builder(it)
diff --git a/sandbox/src/main/python/libeufin-cli
b/sandbox/src/main/python/libeufin-cli
index b4ec5a4..36fff1e 100755
--- a/sandbox/src/main/python/libeufin-cli
+++ b/sandbox/src/main/python/libeufin-cli
@@ -7,7 +7,6 @@ import hashlib
import errno
from datetime import datetime
from requests import post, get
-from Crypto.PublicKey import RSA
from urllib.parse import urljoin
from getpass import getpass
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: fix date range query,
gnunet <=