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:
parent
19f2fb47ee
commit
085381fdc8
5
vserv.py
5
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user