mirror of
https://github.com/r4sas/Niflheim-api
synced 2025-03-13 05:51:45 +00:00
Update vserv.py
This commit is contained in:
parent
e8f47f2c3d
commit
1ee7764df0
6
vserv.py
6
vserv.py
@ -52,12 +52,12 @@ def isdatabase(db_path):
|
||||
print("found database will not create a new one")
|
||||
|
||||
|
||||
def insert_new_entry(db_path, ipv6, coords, utimestamp):
|
||||
def insert_new_entry(db_path, ipv6, coords):
|
||||
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