Browse Source

Update vserv.py

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

4
vserv.py

@ -56,8 +56,8 @@ def insert_new_entry(db_path, ipv6, coords, utimestamp):
try: try:
conn = sqlite3.connect(db_path + "yggindex.db") conn = sqlite3.connect(db_path + "yggindex.db")
c = conn.cursor() c = conn.cursor()
c.execute('''INSERT OR REPLACE INTO yggindex(ipv6, coords, utimestamp) VALUES(?, ?, ?)''',\ c.execute('''INSERT OR REPLACE INTO yggindex(ipv6, coords) VALUES(?, ?)''',\
(ipv6, coords, utimestamp)) (ipv6, coords))
conn.commit() conn.commit()
conn.close() conn.close()
except Error as e: except Error as e:

Loading…
Cancel
Save