Changes to web gui and fixes

This commit is contained in:
2020-07-03 18:37:34 +02:00
parent 609d821501
commit 3deb367e89
9 changed files with 94 additions and 25 deletions

2
api.py
View File

@@ -113,7 +113,7 @@ def getComputers():
ComputerID = value
if ComputerID is not None: # One computer
data = sql.select("SELECT * FROM COMPUTERS WHERE ID_C = '"+ComputerID+"') ORDER BY Name ASC LIMIT 1")
data = sql.select("SELECT * FROM COMPUTERS WHERE ID_C = '"+ComputerID+"' ORDER BY Name ASC LIMIT 1")
return str(data)
else: # All computers
data = sql.select("SELECT * FROM COMPUTERS ORDER BY Name ASC")