We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bd6bee commit 4fce507Copy full SHA for 4fce507
2 files changed
brood/actions.py
@@ -1180,7 +1180,6 @@ def get_groups_for_user(
1180
.all()
1181
)
1182
1183
-
1184
groups_response = []
1185
1186
for group in groups:
brood/api.py
@@ -817,7 +817,9 @@ async def get_groups_handler(
817
"""
818
groups_list: Optional[List[data.GroupUserResponse]] = []
819
try:
820
- groups_list = actions.get_groups_for_user(db_session, user_id=current_user.id, include_metrics=include_metrics)
+ groups_list = actions.get_groups_for_user(
821
+ db_session, user_id=current_user.id, include_metrics=include_metrics
822
+ )
823
except Exception as e:
824
logger.error(f"Error getting list of groups for user: {str(e)}")
825
raise HTTPException(status_code=500)
0 commit comments