Skip to content

Commit

Permalink
Merge pull request #153 from cat-bro/patch-3
Browse files Browse the repository at this point in the history
update tool-use-by-group query
  • Loading branch information
hexylena authored Jan 31, 2025
2 parents ac3fd3f + 4efdab1 commit 3fecd97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion parts/22-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,11 @@ query_tool-last-used-date() { ## : When was the most recent invocation of every
EOF
}

query_tool-use-by-group() { ##? <years_month> [--group=<name>]: Lists count of tools used by all users in a group
query_tool-use-by-group() { ##? <year_month> <group>: Lists count of tools used by all users in a group
meta <<-EOF
ADDED: 19
UPDATED: 22
AUTHORS: gavindi
EOF
handle_help "$@" <<-EOFhelp
Lists tools use count by users in group.
Expand Down Expand Up @@ -1284,6 +1286,8 @@ EOFhelp
user_group_association.user_id = galaxy_user.id
AND
date_trunc('month', job.create_time) = '$arg_year_month-01'
AND
galaxy_group.name = '$arg_group'
GROUP BY
job.tool_id, galaxy_user.username
EOF
Expand Down

0 comments on commit 3fecd97

Please sign in to comment.