remove unesecarry code

This commit is contained in:
sietse jonker
2024-03-26 23:20:05 +01:00
parent c0afae2688
commit 5ce77d54ef

View File

@@ -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())