All not string and int columns transform to string.

pull/649/head
Andrey 2022-08-10 21:06:48 +03:00
rodzic 4b47250849
commit a0b3418bf6
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -89,7 +89,13 @@ def data_generate(
{
"block_number": block_number,
"block_timestamp": block_timestamp,
"data": [dict(row) for row in db_session.execute(query, params)],
"data": [
{
key: (value if type(value) is any((int, str)) else str(value))
for key, value in dict(row).items()
}
for row in db_session.execute(query, params)
],
}
).encode("utf-8")
push_statistics(