From 210edde08af5ff7784f8fe2e8676898887eda537 Mon Sep 17 00:00:00 2001 From: calle <93376500+callebtc@users.noreply.github.com> Date: Mon, 25 Jul 2022 15:04:55 +0200 Subject: [PATCH] Migration: Fix withdraw (#780) --- tools/conv.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/conv.py b/tools/conv.py index 5821f7af8..99bb54f02 100644 --- a/tools/conv.py +++ b/tools/conv.py @@ -102,6 +102,8 @@ def insert_to_pg(query, data): print(e) print(f"Failed to insert {d}") else: + print("query:", query) + print("data:", d) raise ValueError(f"Failed to insert {d}") connection.commit() @@ -259,9 +261,10 @@ def migrate_ext(sqlite_db_file, schema, ignore_missing=True): open_time, used, usescsv, - webhook_url + webhook_url, + custom_url ) - VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s); + VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s); """ insert_to_pg(q, res.fetchall()) # WITHDRAW HASH CHECK