diff --git a/WebTerminal/CPWebSocket.py b/WebTerminal/CPWebSocket.py index f3f10003b..64a7b59cb 100644 --- a/WebTerminal/CPWebSocket.py +++ b/WebTerminal/CPWebSocket.py @@ -79,7 +79,7 @@ def recvData(self): else: self.websocket.sendMessage(self.shell.recv(9000).decode("utf-8")) else: - pass + time.sleep(0.01) else: return 0 except BaseException as msg: diff --git a/loginSystem/admin.py b/loginSystem/admin.py index 1c228b8d5..2dcc5abe5 100755 --- a/loginSystem/admin.py +++ b/loginSystem/admin.py @@ -2,7 +2,7 @@ from django.contrib import admin -import models +from . import models # Register your models here. admin.site.register(models.Administrator) \ No newline at end of file