Skip to content

Commit

Permalink
style: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-pisman committed Oct 23, 2023
1 parent d6ec5b8 commit b08c103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/unipoll_api/actions/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ async def create_group(workspace: Workspace,
await Permissions.check_permissions(workspace, "add_groups", check_permissions)
account = AccountManager.active_user.get()



member = await get_member(account, workspace)

# Check if group name is unique
Expand Down
4 changes: 2 additions & 2 deletions src/unipoll_api/dependencies.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Annotated
from functools import wraps
from bson import DBRef
# from bson import DBRef
from fastapi import Cookie, Depends, Query, HTTPException, WebSocket
from unipoll_api.account_manager import active_user, get_current_active_user
from unipoll_api.documents import ResourceID, Workspace, Group, Account, Poll, Policy, Member, Resource
from unipoll_api.documents import ResourceID, Workspace, Group, Account, Poll, Policy, Member
from unipoll_api import exceptions as Exceptions


Expand Down
2 changes: 1 addition & 1 deletion src/unipoll_api/schemas/policy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Literal, Any, Optional
from pydantic import ConfigDict, BaseModel, Field
from unipoll_api.documents import ResourceID, Account, Group, Member
from unipoll_api.documents import ResourceID, Group, Member


class Policy(BaseModel):
Expand Down

0 comments on commit b08c103

Please sign in to comment.