Skip to content

Commit 09ee229

Browse files
committed
pop instead of get
1 parent 29cefaf commit 09ee229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcsocket/app/views/company.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def company_create(request):
1717
Authentication and json parsing are done by middleware.
1818
"""
1919
data = await request.json()
20-
update_contractors = data.get('update_contractors', True)
20+
update_contractors = data.pop('update_contractors', True)
2121
company: CompanyCreateModal = request['model']
2222
existing_company = bool(company.private_key)
2323
data = company.dict()

0 commit comments

Comments
 (0)