From 1ee7764df0fad7d3148fa7dd05cc84df553cb862 Mon Sep 17 00:00:00 2001 From: yakamok <38737288+yakamok@users.noreply.github.com> Date: Mon, 2 Jul 2018 22:32:29 +0200 Subject: [PATCH] Update vserv.py --- vserv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vserv.py b/vserv.py index 78d2cda..432922d 100644 --- a/vserv.py +++ b/vserv.py @@ -52,12 +52,12 @@ def isdatabase(db_path): print("found database will not create a new one") -def insert_new_entry(db_path, ipv6, coords, utimestamp): +def insert_new_entry(db_path, ipv6, coords): try: conn = sqlite3.connect(db_path + "yggindex.db") c = conn.cursor() - c.execute('''INSERT OR REPLACE INTO yggindex(ipv6, coords, utimestamp) VALUES(?, ?, ?)''',\ - (ipv6, coords, utimestamp)) + c.execute('''INSERT OR REPLACE INTO yggindex(ipv6, coords) VALUES(?, ?)''',\ + (ipv6, coords)) conn.commit() conn.close() except Error as e: