Skip to content

Commit b7c5fd0

Browse files
fix typo and change quotes
1 parent 5785c02 commit b7c5fd0

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

app/rooms/examples/eg008_grant_office_access_to_form_group/controller.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_args() -> dict:
2323
"access_token": session["ds_access_token"],
2424
# Represents your {ACCESS_TOKEN}
2525
"form_group_id": request.form.get("form_group_id"),
26-
'office_id': request.form.get('office_id')
26+
"office_id": request.form.get("office_id")
2727
}
2828

2929
@staticmethod
@@ -34,12 +34,12 @@ def get_form_groups(args) -> List[FormGroupSummary]:
3434
"""
3535

3636
# Step 1. Create an API with headers with headers
37-
api_client = create_rooms_api_client(access_token=args['access_token'])
37+
api_client = create_rooms_api_client(access_token=args["access_token"])
3838

3939
# Step 2. GET Form Groups via FormGroupsAPI
4040
form_groups_api = FormGroupsApi(api_client)
4141
responses = form_groups_api.get_form_groups(
42-
account_id=args['account_id']) # type: FormGroupSummaryList
42+
account_id=args["account_id"]) # type: FormGroupSummaryList
4343

4444
return responses.form_groups
4545

@@ -51,12 +51,12 @@ def get_offices(args) -> List[OfficeSummary]:
5151
"""
5252

5353
# Step 1. Create an API with headers with headers
54-
api_client = create_rooms_api_client(args['access_token'])
54+
api_client = create_rooms_api_client(args["access_token"])
5555

5656
# Step 2. GET offices via OfficesAPI
5757
offices_api = OfficesApi(api_client=api_client)
5858
responses = offices_api.get_offices(
59-
account_id=args['account_id']) # type: OfficeSummaryList
59+
account_id=args["account_id"]) # type: OfficeSummaryList
6060

6161
return responses.office_summaries
6262

@@ -69,11 +69,11 @@ def worker(args):
6969
"""
7070

7171
# Step 1. Create an API client with headers
72-
api_client = create_rooms_api_client(access_token=args['access_token'])
72+
api_client = create_rooms_api_client(access_token=args["access_token"])
7373

74-
# Step 2. Grant office access tp a form group via FormGroups API
74+
# Step 2. Grant office access to a form group via FormGroups API
7575
form_groups_api = FormGroupsApi(api_client)
7676

7777
form_groups_api.grant_office_access_to_form_group(
78-
form_group_id=args['form_group_id'], office_id=args['office_id'],
79-
account_id=args['account_id'])
78+
form_group_id=args["form_group_id"], office_id=args["office_id"],
79+
account_id=args["account_id"])

app/rooms/examples/eg008_grant_office_access_to_form_group/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
eg008 = Blueprint(eg, __name__)
1010

1111

12-
@eg008.route('/eg008', methods=['POST'])
12+
@eg008.route("/eg008", methods=["POST"])
1313
@authenticate(eg=eg)
1414
def assign_office_to_form_group():
1515
"""
@@ -37,7 +37,7 @@ def assign_office_to_form_group():
3737
)
3838

3939

40-
@eg008.route('/eg008', methods=['GET'])
40+
@eg008.route("/eg008", methods=["GET"])
4141
@authenticate(eg=eg)
4242
def get_view():
4343
"""

0 commit comments

Comments
 (0)