From c937abe0981993399df7ae561e3d94ccad0e2df2 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Sun, 27 Mar 2016 22:29:39 +0800 Subject: [PATCH] bugfix --- jlog/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jlog/views.py b/jlog/views.py index 9917ad9ec..ad0f43481 100644 --- a/jlog/views.py +++ b/jlog/views.py @@ -229,7 +229,7 @@ class TermLogRecorder(object): def setid(self, id): self.id = id - TermLogRecorder.loglist[str(id)] = self + TermLogRecorder.loglist[str(id)] = [self] def write(self, msg): if self.recoder and (not self._in_vim): @@ -284,7 +284,7 @@ class TermLogRecorder(object): timestamp=int(self.recoderStartTime)) if self.user: record.user.add(self.user) - TermLogRecorder.loglist[str(self.id)].remove(self) + del TermLogRecorder.loglist[str(self.id)] def list(self, user=None, uid=None): tmp = []