saving port info + links
This commit is contained in:
@@ -695,11 +695,11 @@ def get_previous_internet_IP ():
|
||||
sql.execute ("SELECT dev_LastIP FROM Devices WHERE dev_MAC = 'Internet' ")
|
||||
result = sql.fetchone()
|
||||
|
||||
if len(result) > 0 and type(result) is not None:
|
||||
previous_IP = result[0]
|
||||
|
||||
commitDB()
|
||||
|
||||
if result is not None and len(result) > 0 :
|
||||
previous_IP = result[0]
|
||||
|
||||
# return previous IP
|
||||
return previous_IP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user