Skip to content

Commit

Permalink
fix: fixed example of assign access groups endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Dec 12, 2023
1 parent 65b13c5 commit cafa7da
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions api/addons/project_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ async def get_raw_addon_project_overrides(
variant: str = Query("production"),
site: str | None = Query(None, regex="^[a-z0-9-]+$"),
) -> dict[str, Any]:

if site:
result = await Postgres.fetch(
f"""
Expand Down Expand Up @@ -410,7 +409,6 @@ async def set_raw_addon_project_overrides(
variant: str = Query("production"),
site: str | None = Query(None, regex="^[a-z0-9-]+$"),
) -> EmptyResponse:

if site:
await Postgres.execute(
f"""
Expand Down
1 change: 0 additions & 1 deletion api/representations/representations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from .router import router


#
# [GET]
#
Expand Down
4 changes: 2 additions & 2 deletions api/users/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ class AssignAccessGroupsRequestModel(OPModel):
default_factory=list,
description="List of access groups to assign",
example=[
{"project": "project1", "roles": ["artist", "viewer"]},
{"project": "project2", "roles": ["viewer"]},
{"project": "project1", "accessGroups": ["artist", "viewer"]},
{"project": "project2", "accessGroups": ["viewer"]},
],
)

Expand Down
1 change: 0 additions & 1 deletion ayon_server/entities/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ async def _save(self, transaction) -> bool:

project_name = self.name
if self.exists:

fields = dict_exclude(
self.dict(exclude_none=True),
[
Expand Down
1 change: 0 additions & 1 deletion ayon_server/metrics/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ async def get_project_metrics(
data: dict[str, Any],
saturated: bool,
) -> ProjectMetrics:

result = {}
for entity_type in [
"folder",
Expand Down

0 comments on commit cafa7da

Please sign in to comment.