add ACM contest admin helper api
This commit is contained in:
1 parent
27a9b1144b
commit
4c2db34b9d
5 files changed
+64
-13
No files matched your search
@@ -2,7 +2,7 @@ import xmlrpclib
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
server = xmlrpclib.Server('http://localhost:9005/RPC2')
|
||||
server = xmlrpclib.Server("http://localhost:9005/RPC2")
|
||||
info = server.supervisor.getAllProcessInfo()
|
||||
error_states = list(filter(lambda x: x["state"] != 20, info))
|
||||
exit(len(error_states))
|
||||
|
||||
Reference in new issue
Block a user