From 085381fdc845c13a8dc7db955115bf87a8b318b1 Mon Sep 17 00:00:00 2001 From: yakamok <38737288+yakamok@users.noreply.github.com> Date: Mon, 2 Jul 2018 01:23:56 +0200 Subject: [PATCH] Update vserv.py --- vserv.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vserv.py b/vserv.py index b776000..229fa20 100644 --- a/vserv.py +++ b/vserv.py @@ -41,10 +41,9 @@ def isdatabase(db_path): try: conn = sqlite3.connect(db_path + 'yggindex.db') c = conn.cursor() - c.execute('create table yggindex(ipv6 varchar(45) UNIQUE, coords varchar(50),\ - utimestamp varchar(40))') + c.execute('''create table yggindex(ipv6 varchar(45) UNIQUE, coords varchar(50),\ + time timestamp default (strftime('%s', 'now')))''') conn.commit() - # c.commit() except Error as e: print e finally: