def METHOD_NAME(
    usergroup_id: int, doc: Document, filter_condition=None
) -> Query:
    q = get_readings_query(usergroup_id, doc)
    if filter_condition is not None:
        q = q.filter(filter_condition)
    return q