Skip to content

Commit

Permalink
userDash | add support of wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorchug committed Jul 19, 2022
1 parent bd31330 commit b4558b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2745,13 +2745,13 @@ def userInfo(request, user=''):
links = get_relevant_links(userid, fields)

# Tasks owned by the user
query = setupView(request, hours=days*24, limit=999999, querytype='task')
query, extra_query_str, _ = setupView(request, hours=days*24, limit=999999, querytype='task', wildCardExt=True)

if userQueryTask is None:
query['username__icontains'] = user.strip()
tasks = JediTasks.objects.filter(**query).values()
tasks = JediTasks.objects.filter(**query).extra(where=[extra_query_str]).values()
else:
tasks = JediTasks.objects.filter(**query).filter(userQueryTask).values()
tasks = JediTasks.objects.filter(**query).filter(userQueryTask).extra(where=[extra_query_str]).values()
_logger.info('Got {} tasks: {}'.format(len(tasks), time.time() - request.session['req_init_time']))

tasks = cleanTaskList(tasks, sortby=sortby, add_datasets_info=True)
Expand Down

0 comments on commit b4558b1

Please sign in to comment.