1
0
mirror of https://github.com/r4sas/Niflheim-api synced 2025-01-27 07:04:44 +00:00

Update vserv.py

This commit is contained in:
yakamok 2018-07-02 01:23:56 +02:00 committed by GitHub
parent 19f2fb47ee
commit 085381fdc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: