mirror of
https://github.com/r4sas/Niflheim-api
synced 2025-02-04 19:14:24 +00:00
Update vserv.py
This commit is contained in:
parent
085381fdc8
commit
be6b4c9c43
4
vserv.py
4
vserv.py
@ -56,8 +56,8 @@ def insert_new_entry(db_path, ipv6, coords, utimestamp):
|
||||
try:
|
||||
conn = sqlite3.connect(db_path + "yggindex.db")
|
||||
c = conn.cursor()
|
||||
c.execute('''INSERT OR REPLACE INTO yggindex(ipv6, coords, utimestamp) VALUES(?, ?, ?)''',\
|
||||
(ipv6, coords, utimestamp))
|
||||
c.execute('''INSERT OR REPLACE INTO yggindex(ipv6, coords) VALUES(?, ?)''',\
|
||||
(ipv6, coords))
|
||||
conn.commit()
|
||||
conn.close()
|
||||
except Error as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user