Browse Source

Update vserv.py

develop
yakamok 6 years ago committed by GitHub
parent
commit
085381fdc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      vserv.py

5
vserv.py

@ -41,10 +41,9 @@ def isdatabase(db_path): @@ -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…
Cancel
Save