remove unesecarry code
This commit is contained in:
@@ -143,19 +143,6 @@ async def getNodeID(macAdress):
|
||||
nodeID = item
|
||||
|
||||
return nodeID
|
||||
|
||||
async def getNodeType(macAdress):
|
||||
id = (macAdress,)
|
||||
mydb = dbLogin()
|
||||
cursor = mydb.cursor()
|
||||
cursor.execute("""SELECT Type FROM Node WHERE MAC = %s""", id)
|
||||
data = cursor.fetchall()
|
||||
|
||||
for tuples in data:
|
||||
for item in tuples:
|
||||
Type = item
|
||||
|
||||
return Type
|
||||
|
||||
async def newNode(mac, type):
|
||||
id = (mac, type,)
|
||||
@@ -166,5 +153,4 @@ async def newNode(mac, type):
|
||||
print("new node assigned")
|
||||
mydb.commit()
|
||||
|
||||
asyncio.run(main())
|
||||
|
||||
asyncio.run(main())
|
Reference in New Issue
Block a user