aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-06-12 16:21:50 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-06-12 16:21:50 +0200
commit4bbbe84517b1cd471ba6f84596b8cd39ecbff047 (patch)
tree6d6ce6e5293e5d226636e1ab489dfc1e2e143acc /src
parenta752b76ccbeced9741ed1204d2ffa1a905a7be11 (diff)
download0tdns-4bbbe84517b1cd471ba6f84596b8cd39ecbff047.tar.gz
0tdns-4bbbe84517b1cd471ba6f84596b8cd39ecbff047.zip
fix database write bug
Diffstat (limited to 'src')
-rwxr-xr-xsrc/perform_queries.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perform_queries.py b/src/perform_queries.py
index 06dc578..2ce7742 100755
--- a/src/perform_queries.py
+++ b/src/perform_queries.py
@@ -67,7 +67,7 @@ def resolve_call_back(mydata, status, result):
INSERT INTO user_side_responses (date, result, dns_id, service_id, vpn_id)
VALUES (current_timestamp, %s, %s, %s, %s)
RETURNING id
- ''', (query.dns_id, result_info, query.service_id, query.vpn_id))
+ ''', (result_info, query.dns_id, query.service_id, query.vpn_id))
responses_id = query.cursor.fetchone()[0]