mirror of
https://gitlab.com/JKANetwork/powerfulcomputermanager.git
synced 2026-02-25 14:33:44 +01:00
Changes to web gui and fixes
This commit is contained in:
2
api.py
2
api.py
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user