Skip to content

Commit

Permalink
Document bulk api service group_search
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Nov 22, 2023
1 parent 03b6f5c commit 4c79e32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions h/services/bulk_api/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ def __init__(self, db: Session):
def group_search(
self, groups: List[str], annotations_created: dict
) -> List[BulkGroup]:
"""
Get a list of groups.
:param groups: List of "authority_provided_id" to filter groups by.
The returned groups will be a subset of this list.
:param annotations_created: Filter by groups with annotations created in this date range.
:raises BadDateFilter: For poorly specified date conditions
"""

query = (
sa.select([Group.authority_provided_id])
.join(Annotation, Group.pubid == Annotation.groupid)
Expand Down

0 comments on commit 4c79e32

Please sign in to comment.