diff --git a/server/data.py b/server/data.py index cb93efa..c2e7a89 100644 --- a/server/data.py +++ b/server/data.py @@ -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()) \ No newline at end of file