mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 21:50:01 +00:00
Update views.py
This commit is contained in:
parent
2c74c8a8df
commit
d7442b4879
@ -27,7 +27,7 @@ def log_list(request, offset):
|
||||
posts = Log.objects.filter(is_finished=False).order_by('-start_time')
|
||||
if keyword:
|
||||
posts = posts.filter(Q(user__icontains=keyword) | Q(host__icontains=keyword) |
|
||||
Q(login_type_icontains=keyword))
|
||||
Q(login_type__icontains=keyword))
|
||||
|
||||
elif offset == 'exec':
|
||||
posts = ExecLog.objects.all().order_by('-id')
|
||||
|
Loading…
Reference in New Issue
Block a user