mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-24 21:08:30 +00:00
[Bugfix] 修复adhoc 日志查看的bug, 修改config example (#2230)
This commit is contained in:
@@ -168,7 +168,10 @@ class AdHoc(models.Model):
|
||||
|
||||
@property
|
||||
def tasks(self):
|
||||
return json.loads(self._tasks)
|
||||
try:
|
||||
return json.loads(self._tasks)
|
||||
except:
|
||||
return []
|
||||
|
||||
@tasks.setter
|
||||
def tasks(self, item):
|
||||
|
Reference in New Issue
Block a user