Skip to content

Commit

Permalink
Remove accidental changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jotjern committed Mar 11, 2024
1 parent 528ccdc commit 43a4dad
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/app/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ async def sync_for_user(
user_id: UserId,
wait_for_updates: bool = True,
) -> None:
return
groups_data = await self.app.http.get_ow_groups_by_user_id(ow_user_id)
filtered_groups_data = [
g
Expand Down Expand Up @@ -118,7 +117,6 @@ async def create_user_if_not_exists(
*,
conn: Optional[Pool] = None,
) -> UserId:
return
async with MaybeAcquire(conn, self.app.db.pool) as conn:
user_create = UserCreate(
ow_user_id=ow_user_id,
Expand All @@ -135,7 +133,6 @@ async def add_user_to_group(
user_data: dict[str, Any],
conn: Optional[Pool] = None,
) -> None:
return
user_create = UserCreate(
ow_user_id=user_data["user"]["id"],
first_name=user_data["user"]["first_name"],
Expand Down Expand Up @@ -164,7 +161,6 @@ async def add_users_to_group(
users_data: list[dict[str, Any]],
conn: Optional[Pool] = None,
) -> list[GroupMember]:
return
user_creates = {}
for user_data in users_data:
user_creates[user_data["user"]["id"]] = UserCreate(
Expand Down Expand Up @@ -209,7 +205,6 @@ async def handle_initial_group_permissions(
group_users: list[dict[str, Any]],
conn: Optional[Pool] = None,
) -> None:
return
ids_map = {m.ow_group_user_id: m.user_id for m in members}
privileges = []
for u in group_users:
Expand All @@ -232,7 +227,6 @@ async def handle_group_update(
member_ids: list[int],
conn: Optional[Pool] = None,
) -> None:
return
async with MaybeAcquire(conn, self.app.db.pool) as conn:
group_members = await self.app.db.group_members.get_all_raw(
group_id, conn=conn
Expand Down Expand Up @@ -314,7 +308,6 @@ async def sync_group_for_user(
ow_user_id: OWUserId,
group_data: dict[str, Any],
) -> None:
return
group_users = await self.app.http.get_ow_group_users(group_data["id"])

image_data = group_data["image"]
Expand Down Expand Up @@ -378,7 +371,6 @@ async def update_user(
user_data: dict[str, Any],
conn: Optional[Pool] = None,
) -> None:
return
async with MaybeAcquire(conn, self.app.db.pool) as conn:
user_update = UserUpdate(
user_id=user_id,
Expand All @@ -399,7 +391,6 @@ async def update_multiple(
group_users: list[dict[str, Any]],
conn: Optional[Pool] = None,
) -> None:
return
async with MaybeAcquire(conn, self.app.db.pool) as conn:
db_group_users = await self.app.db.group_users.get_all_raw(
group_id=group_id,
Expand Down

0 comments on commit 43a4dad

Please sign in to comment.