Commit 0937e64c authored by ibuler's avatar ibuler

Merge pull request #178 from jumpserver/dev

Fix a bug for get_log function 

hot fix
parents 6e48fe63 5a6e0283
...@@ -317,7 +317,7 @@ class TermLogRecorder(object): ...@@ -317,7 +317,7 @@ class TermLogRecorder(object):
if self._lists: if self._lists:
self.file = self._lists.get(filename=filename) self.file = self._lists.get(filename=filename)
else: else:
self.file = TermLog.objects.get(user=user.id, filename=filename) self.file = TermLog.objects.get(filename=filename)
if self.file.logPath == 'locale': if self.file.logPath == 'locale':
return self.file.log return self.file.log
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment